list_empty_careful(9) suse man page | unix.com

Man Page: list_empty_careful

Operating Environment: suse

Section: 9

LIST_EMPTY_CAREFUL(9)						    Data Types						     LIST_EMPTY_CAREFUL(9)

NAME
list_empty_careful - tests whether a list is empty and not being modified
SYNOPSIS
int list_empty_careful(const struct list_head * head);
ARGUMENTS
head the list to test
DESCRIPTION
tests whether a list is empty _and_ checks that no other CPU might be in the process of modifying either member (next or prev)
NOTE
using list_empty_careful without synchronization can only be safe if the only activity that can happen to the list entry is list_del_init. Eg. it cannot be used if another CPU could re-list_add it.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 LIST_EMPTY_CAREFUL(9)
Related Man Pages
list(3) - suse
struct_sk_buff(9) - suse
tag(3tcl) - centos
tag(3tcl) - hpux
tag(3tcl) - linux
Similar Topics in the Unix Linux Community
Getting command output to putty window title.
Migrating to UNIX
Cut command on RHEL 6.8 compatibility issues
The Future of the PM (Private Message) System at UNIX.com
Shopt -s histappend