genl_sk_priv_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… genl_sk_priv_get(9) β€” a Kernel API Manual moment πŸŽ€

okay so bestie, welcome to the Kernel API Manual, and today's main character is genl_sk_priv_get πŸ’– she's a function, she's a vibe, and she's here to hand you a socket's very own private memory. no cap.


✨ NAME ✨

genl_sk_priv_get β€” Get family private pointer for socket 🫢


🌸 SYNOPSIS 🌸

void * genl_sk_priv_get (struct genl_family *family , struct sock *sk );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • family β€” the family πŸ’« (yes literally, that's the whole description, it's giving mysterious icon energy)
  • sk β€” the socket πŸ”Œ

πŸ’œ DESCRIPTION πŸ’œ

So here's the tea β˜• β€” she looks up the private memory for a Generic netlink family and the socket you specified. And if that private memory hasn't been allocated yet? She just... allocates it for you. no big deal. obsessed with a self-starter honestly πŸ‘‘


🌈 RETURN 🌈

On success you get a valid pointer ✨ otherwise you get a negative error value, encoded by ERR_PTR 😭 so like, check it, bestie, fr fr.


πŸ‘‘ SEE ALSO πŸ‘‘


lowkey important reminder: this page lives at ./net/netlink, and she was last touched in October 2026 ⭐ so yeah, she's fresh πŸ’…

and that's the whole page bestie, slay, ate, periodt πŸŒΈπŸ’–πŸŽ€

πŸ“¦ where this page comes from