list_empty_careful(9) centos man page | unix.com

Man Page: list_empty_careful

Operating Environment: centos

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 3.10 June 2014 LIST_EMPTY_CAREFUL(9)
Related Man Pages
mpage_readpages(9) - centos
struct_cfg80211_beacon_data(9) - centos
struct_rio_mport(9) - centos
cpuaddset(3) - osf1
get_info(9r) - osf1
Similar Topics in the Unix Linux Community
Set hard block limit for user using quota
CentOS7 restoring file capabilities
Docker learning Phase-I
Unsure why access time on a directory change isn't changing
CentOS 6 ran out of space, need to reclaim it