patch-2.2.17 linux/include/asm-s390/queue.h
Next file: linux/include/asm-s390/s390io.h
Previous file: linux/include/asm-s390/processor.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Mon Sep 4 18:39:28 2000
- Orig file:
v2.2.16/include/asm-s390/queue.h
- Orig date:
Mon Sep 4 18:37:17 2000
diff -u --recursive --new-file v2.2.16/include/asm-s390/queue.h linux/include/asm-s390/queue.h
@@ -70,6 +70,15 @@
*lhead=member;
}
+static __inline__ list *remove_listhead(list **lhead)
+{
+ list *oldhead=*lhead;
+
+ if(oldhead)
+ *lhead=(*lhead)->next;
+ return(oldhead);
+}
+
static __inline__ void add_to_list_tail(list **lhead,list *member)
{
list *curr,*prev;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)