tomoyo_sock_family(9)
πΈ 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 tostruct 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:
tomoyo_parse_ipaddr_union(9)tomoyo_print_ipv4(9)tomoyo_print_ipv6(9)tomoyo_print_ip(9)tomoyo_same_inet_acl(9)tomoyo_same_unix_acl(9)tomoyo_merge_inet_acl(9)tomoyo_merge_unix_acl(9)tomoyo_write_inet_network(9)tomoyo_write_unix_network(9)tomoyo_audit_net_log(9)tomoyo_audit_inet_log(9)tomoyo_audit_unix_log(9)tomoyo_check_inet_acl(9)tomoyo_check_unix_acl(9)tomoyo_inet_entry(9)tomoyo_check_inet_address(9)tomoyo_unix_entry(9)tomoyo_check_unix_address(9)tomoyo_kernel_service(9)tomoyo_socket_listen_permission(9)tomoyo_socket_connect_permission(9)tomoyo_socket_bind_permission(9)tomoyo_socket_sendmsg_permission(9)
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
- 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