netlbl_sock_delattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ netlbl_sock_delattr(9) ✨

Okay bestie, welcome to the netlbl_sock_delattr page from the Kernel API Manual β€” yes the whole manual name, we're fancy like that πŸ’…. This is a tiny little function but she's important, so let's get into it.


🌸 NAME 🌸

netlbl_sock_delattr β€” deletes all the NetLabel labels sitting on a socket. Every single one. Gone. Periodt πŸ’€


πŸ¦‹ SYNOPSIS πŸ¦‹

void netlbl_sock_delattr(struct sock *sk);

πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” the socket, bestie. That's the one. The socket in question 🫢

πŸ”₯ DESCRIPTION πŸ”₯

So what does she actually do? netlbl_sock_delattr removes all the NetLabel labeling from sk β€” like, a full clean-out, no crumbs left 🧹✨

⚠️ Real talk though: the caller is responsible for making sure sk is locked. That's on you, not on the function. Don't make it weird, just lock the socket first πŸ”’

πŸ’œ SEE ALSO πŸ’œ

Lowkey the friend group is huge, so here's everyone:


And that's the whole page, babes! πŸ¦„ This lil gem lives in ./net/netlabel, dated October 2026, and it's signed netlbl_sock_delattr(9) β€” iconic from the first line to the last, no cap πŸ‘‘πŸ’–

πŸ“¦ where this page comes from