Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177458564
D41072.1794459131.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D41072.1794459131.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, Nov 12, 4:52 AM (11 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41671526
Default Alt Text
D41072.1794459131.diff (1 KB)
Attached To
Mode
D41072: queue.h: Define {LIST,TAILQ}_REMOVE_HEAD
Attached
Detach File
Event Timeline