centos man page for list_empty_careful

Query: list_empty_careful

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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
struct_irq_chip_generic(9) - centos
gtester(1) - centos
list(3) - suse
struct_sk_buff(9) - suse
thread::queue(3pm) - redhat
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
Best performance UNIX just for HOST Virtualization?
Docker learning Phase-I
Controlling user input
[TIP] Processing YAML files with yq