sctp_list_dequeue(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms