sctp_list_dequeue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sctp_list_dequeue (Kernel API Manual, section 9) ✨

okay so bestie, welcome to the Kernel API Manual β€” this is sctp_list_dequeue(9) and she is literally the simplest little icon in the whole SCTP header file. no cap, this one's a two-second read and then you can go back to your group chat. 🫢


🌸 NAME 🌸

sctp_list_dequeue β€” remove from the head of the queue πŸ’…

like, she pops the front item off and hands it to you. that's the whole job. iconic behavior honestly.


πŸŽ€ SYNOPSIS πŸŽ€

struct list_head * sctp_list_dequeue (struct list_head *list );

look at her go 😭 so clean, so minimal, so main character energy.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • list β€” the list you're dequeuing from. that's it. that's the argument. she's not asking for much, she just needs the list bestie πŸ’–

✨ DESCRIPTION ✨

okay so here's the vibe check: sctp_list_dequeue removes the head of the list. 🎯

the head item gets returned to you β€” or, plot twist, NULL if the list is empty πŸ™ˆ (yes, empty list = NULL, do not pass go, do not collect your struct pointer).

fr fr: your return value might be NULL, so check that before you go dereferencing anything. the list being empty is a whole mood and you gotta respect it. πŸ’€

that's it! no extra flags, no hidden behavior, no weird side quests. she does exactly one thing and she slays at it. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

  • kernel file ./include/net/sctp/sctp.h β€” go read the source, iykyk, it's right there πŸ“–

🌈⭐ and that's the whole page bestie, tysm for reading! this one came to you from ./include/net/sctp and it's dated October 2026 β€” so like, future vibes ✨ go forth and dequeue responsibly, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from