Mittwoch, 2. Juni 2010

linux kernel list handling functions

linux kernel list handling functions

quoted from : professional linux kernel architecture by Wolfgang Mauerer, page 21-22.

the data type of their arguments is struct list_head

1. list_add(new, head) inserts new right AFTER the existing head element.

2. list_add_tail(new ,head) inserts new right BEFORE the element specified by head. If the list head is specified for head, this causes the new element to be inserted at the END of the list because of the cyclic nature of the list.

3. list_del(entry) deletes an entry from a list.





Keine Kommentare: