Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147506973
D41072.1783628691.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41072.1783628691.diff
View Options
diff --git a/sys/sys/queue.h b/sys/sys/queue.h
--- a/sys/sys/queue.h
+++ b/sys/sys/queue.h
@@ -111,7 +111,7 @@
* _INSERT_TAIL - - + +
* _CONCAT s s + +
* _REMOVE_AFTER + - + -
- * _REMOVE_HEAD + - + -
+ * _REMOVE_HEAD + + + +
* _REMOVE s + s +
* _SWAP + + + +
*
@@ -596,6 +596,9 @@
__containerof((elm)->field.le_prev, \
QUEUE_TYPEOF(type), field.le_next))
+#define LIST_REMOVE_HEAD(head, field) \
+ LIST_REMOVE(LIST_FIRST(head), field)
+
#define LIST_REMOVE(elm, field) do { \
QMD_SAVELINK(oldnext, (elm)->field.le_next); \
QMD_SAVELINK(oldprev, (elm)->field.le_prev); \
@@ -842,6 +845,9 @@
((elm)->field.tqe_prev == &(head)->tqh_first ? NULL : \
__containerof((elm)->field.tqe_prev, QUEUE_TYPEOF(type), field.tqe_next))
+#define TAILQ_REMOVE_HEAD(head, field) \
+ TAILQ_REMOVE(head, TAILQ_FIRST(head), field)
+
#define TAILQ_REMOVE(head, elm, field) do { \
QMD_SAVELINK(oldnext, (elm)->field.tqe_next); \
QMD_SAVELINK(oldprev, (elm)->field.tqe_prev); \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 9, 8:24 PM (17 m, 47 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29044181
Default Alt Text
D41072.1783628691.diff (1 KB)
Attached To
Mode
D41072: queue.h: Define {LIST,TAILQ}_REMOVE_HEAD
Attached
Detach File
Event Timeline
Log In to Comment