tomoyo_sock_family(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

tomoyo_sock_family β€” get socket's family. Okay so this is tomoyo_sock_family(9), and it’s giving Kernel API Manual energy because that’s where this page lives. The whole function is a tiny little family-reveal moment for a socket, and honestly? iconic. πŸ’–

✨ SYNOPSIS ✨

Here’s the signature in all its one-line glory, bestie:

u8 tomoyo_sock_family (struct sock *sk );

🫢 ARGUMENTS 🫢

  • sk β€” pointer to struct sock. That’s the socket pointer you’re handing over; no cap, it’s right there in the signature. 🫢

πŸ’… DESCRIPTION πŸ’…

Returns one of PF_INET, PF_INET6, PF_UNIX or 0. That’s the whole return-value menu, periodt. πŸ’…βœ¨

πŸ”₯ SEE ALSO πŸ”₯

The kernel file ./security/tomoyo/network.c is the file to peek at for this whole situation. The full SEE ALSO friendship bracelet is:


Cute sign-off time: source/version ./security/tomoyo, date October 2026, and page name tomoyo_sock_family(9) all wrapped up with a bow. πŸŽ€πŸ’œ

πŸ“¦ where this page comes from