tomoyo_print_ipv4(9)
π tomoyo_print_ipv4 β the Kernel API Manual page, but make it make sense β¨
okay so bestie, welcome to the Kernel API Manual π you're literally about to learn how to print an IPv4 address, and honestly? it's giving "small function, big job" energy. no cap.
β¨ NAME β¨
tomoyo_print_ipv4 β Print an IPv4 address. that's it. that's the whole name. slay π
π¦ SYNOPSIS π¦
like, here's the whole vibe of the thing, bestie β look at these parameters:
void tomoyo_print_ipv4 (char *buffer , const unsigned int buffer_len ,
const __be32 *min_ip , const __be32 *max_ip );
no return value, four parameters, zero drama. it's giving efficient. π
πΈ ARGUMENTS πΈ
okay so let's go through the squad one by one, because each one matters (fr fr, don't skip):
bufferβ the buffer you're writing to. this is where the magic lands, bestie π«buffer_lenβ the size ofbuffer. yes, it'sunsigned int. yes, you need it. don't @ me.min_ipβ a pointer to__be32. it's the low end of the range, lowkey iconic π«Άmax_ipβ also a pointer to__be32. the other end of the range. matching set, very cute, very matching-energy π
ngl, bothmin_ipandmax_ipareconst, so β¨ do not touch β¨ β read-only, hands off, respectfully admire from a distance π
π§ DESCRIPTION π§
so what does it do? it prints an IPv4 address. and what does it return? nothing. zero. nada. no exit status, no error code, no little gift for you at the end. π
it's a void function, bestie β the way that it just does its job and leaves without a word is honestly main character energy. no return value, periodt. π
π SEE ALSO π
okay this is the part where the function tags all its friends in the group chat. and there are so many of them. buckle up π
first up, the file itself: Kernel file ./security/tomoyo/network.c β that's home base, iykyk πΈ
and now, the whole squad, in order, no one left behind:
tomoyo_parse_ipaddr_union(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_sock_family(9)tomoyo_socket_listen_permission(9)tomoyo_socket_connect_permission(9)tomoyo_socket_bind_permission(9)tomoyo_socket_sendmsg_permission(9)
like, that's the entire cast. ate and left no crumbs π₯
π real talk though: this page tells you it prints an IPv4 address and returns nothing. that's the whole documented contract. don't go inventing behaviour, bestie β i'm just the messenger π«Ά
and that's the page!! π sourced straight from ./security/tomoyo, dated October 2026, and living in the Kernel API Manual π mwah, go print some IPs responsibly, ily βπ
π¦ 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