Project

General

Profile

Actions

Bug #9731

closed

uts: update sys/queue.h

Added by Toomas Soome over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2018-08-13
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The queue.h is implementing family of methods for list and queue management. Our instance has not been updated for a while (compared to FreeBSD and NetBSD) and we are missing manual. Added macros:

+LIST_CLASS_ENTRY
+LIST_CLASS_HEAD
+LIST_END
+LIST_FOREACH_FROM_SAFE
+LIST_FOREACH_FROM
+LIST_FOREACH_SAFE
+LIST_PREV
+LIST_SWAP
+QMD_IS_TRASHED
+QMD_IS_TRASHED
+QMD_SAVELINK
+QMD_SAVELINK
+QMD_TRACE_ELEM
+QMD_TRACE_ELEM
+QMD_TRACE_HEAD
+QMD_TRACE_HEAD
+QUEUE_MACRO_DEBUG_TRACE
+QUEUE_MACRO_DEBUG_TRASH
+QUEUE_TYPEOF
+QUEUE_TYPEOF
+SIMPLEQ_CLASS_ENTRY
+SIMPLEQ_CLASS_HEAD
+SIMPLEQ_CONCAT
+SIMPLEQ_END
+SIMPLEQ_FOREACH_FROM_SAFE
+SIMPLEQ_FOREACH_FROM
+SIMPLEQ_FOREACH_SAFE
+SIMPLEQ_LAST
+SIMPLEQ_REMOVE_AFTER
+SLIST_CLASS_ENTRY
+SLIST_CLASS_HEAD
+SLIST_CONCAT
+SLIST_END
+SLIST_FOREACH_FROM_SAFE
+SLIST_FOREACH_FROM
+SLIST_FOREACH_SAFE
+SLIST_REMOVE_AFTER
+SLIST_SWAP
+STAILQ_CLASS_ENTRY
+STAILQ_CLASS_HEAD
+STAILQ_CONCAT
+STAILQ_END
+STAILQ_FOREACH_FROM_SAFE
+STAILQ_FOREACH_FROM
+STAILQ_FOREACH_SAFE
+STAILQ_LAST
+STAILQ_REMOVE_AFTER
+STAILQ_SWAP
+TAILQ_CLASS_ENTRY
+TAILQ_CLASS_HEAD
+TAILQ_END
+TAILQ_FOREACH_FROM_SAFE
+TAILQ_FOREACH_FROM
+TAILQ_FOREACH_REVERSE_FROM_SAFE
+TAILQ_FOREACH_REVERSE_FROM
+TAILQ_FOREACH_REVERSE_SAFE
+TAILQ_FOREACH_SAFE
+TAILQ_SWAP
+TRACEBUF
+TRACEBUF_INITIALIZER
+TRASHIT

Also updated existing macros to use macros, and did add queue.3 from FreeBSD. This will allow us to drop duplicate instances of queue.h.


Related issues

Related to illumos gate - Feature #9851: add sys/containerof.h and implement __containerofClosedToomas Soome2018-09-19

Actions
Related to illumos gate - Bug #5541: queue(3) man page is neededClosed2015-01-15

Actions
Actions

Also available in: Atom PDF