Thread (6 messages) 6 messages, 2 authors, 2025-04-20

SLIST_REMOVAL number of arguments

From: Solomon Tan <hidden>
Date: 2025-04-20 10:07:48

Hi!

Kindly forgive me if I'm mistaken, but might there be an error in the man pages on the number of arguments in `SLIST_REMOVE`?

The SYNOPSIS in https://man7.org/linux/man-pages/man3/slist.3.html states that there are three arguments.
       void SLIST_REMOVE(SLIST_HEAD *head, struct TYPE *elm,
                               SLIST_ENTRY NAME);
However, the EXAMPLE and the source indicate that there should be four. Quoting the source:
#define    SLIST_REMOVE(head, elm, type, field) do {            \
Should the SYNOPSIS be the following instead?
       void SLIST_REMOVE(SLIST_HEAD *head, struct TYPE *elm, TYPE,
                               SLIST_ENTRY NAME);
Thank you.

Cheers,
Solomon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help