Rechercher une page de manuel
list_empty_careful
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
list_empty_careful - tests whether a list is empty and not being modifiedSYNOPSIS
- 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
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre