HomeFreeBSD

Introduce REMOVE_NEXT() macro's for SLIST and STAILQ.
rS179210Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Introduce REMOVE_NEXT() macro's for SLIST and STAILQ.

Even though single linked lists allow items to be removed at constant time
(when the previous element is known), the queue macro's don't allow this.
Implement new REMOVE_NEXT() macro's. Because the REMOVE() macro's also
contain the same code, make it call REMOVE_NEXT().

The OpenBSD version of SLIST_REMOVE_NEXT() needs a reference to the list
head, even though it is unused. We'd better mimic this. The STAILQ version
also needs a reference to the list. This means the prototypes of both
macro's are the same.

Approved by: philip (mentor)
PR: kern/121117

Details

Provenance
edAuthored on
Parents
rS179209: Add a new group definition to sys/conf.h: GID_TTY.
Branches
Unknown
Tags
Unknown

Event Timeline