tipc_getname(9)
π tipc_getname(9) β bestie's guide to the Kernel API Manual β¨
okay so you opened tipc_getname(9) from the Kernel API Manual and honestly? iconic choice. this is the little guy that tells you the port ID of a socket, or of a peer socket. that's it, that's the whole vibe. π
πΈ NAME πΈ
tipc_getname β get the port ID of a socket or peer socket. literally just that. no cap. π
β¨ SYNOPSIS β¨
int tipc_getname (struct socket *sock , struct sockaddr *uaddr , int peer );
three args, one int back. she's compact. she's efficient. we stan. π¦
π«Ά ARGUMENTS π«Ά
sockβ the socket structure. the main character, the whole reason we're here. πuaddrβ the area where the returned socket address goes. it's giving "empty parking spot, fill it in." πpeerβ okay so this one is a little menu of options, pay attention bestie:0= own ID (just you, selfie mode π)1= current peer ID (the bff you're talking to rn π¬)2= current/former peer ID (the bff OR the ex-friend, could be either π)
β RETURN β
0 on success, errno otherwise. so like, if you get a 0 you ate. if not, check your errno, bestie, she's trying to tell you something. π₯
π NOTE π
this routine doesn't need to take the socket lock β and she's valid for it β because it only accesses socket information that is unchanging, or which changes in a completely predictable manner. so it's not sloppy, it's intentional. very main-character-energy, very "I know exactly what I'm doing." π
ngl this is the kind of note that saves you from a two-hour debugging session at 3am. write it down. π
π SEE ALSO π
the whole friend group, no one left out, periodt. go say hi:
- kernel file
./net/tipc/socket.cstructtipc_sock(9) tsk_advance_rx_queue(9)tsk_rej_rx_queue(9)tipc_sk_create(9)tipc_release(9)__tipc_bind(9)tipc_poll(9)tipc_sendmcast(9)tipc_send_group_msg(9)tipc_send_group_unicast(9)tipc_send_group_anycast(9)tipc_send_group_bcast(9)tipc_send_group_mcast(9)tipc_sk_mcast_rcv(9)tipc_sk_conn_proto_rcv(9)tipc_sendmsg(9)tipc_sendstream(9)tipc_send_packet(9)tipc_sk_set_orig_addr(9)tipc_sk_anc_data_recv(9)tipc_recvmsg(9)tipc_recvstream(9)tipc_write_space(9)tipc_data_ready(9)tipc_sk_filter_connect(9)rcvbuf_limit(9)tipc_sk_filter_rcv(9)tipc_sk_backlog_rcv(9)tipc_sk_enqueue(9)tipc_sk_rcv(9)tipc_connect(9)tipc_listen(9)tipc_accept(9)tipc_shutdown(9)tipc_setsockopt(9)tipc_getsockopt(9)tipc_socket_init(9)tipc_socket_stop(9)tipc_sk_filtering(9)tipc_sk_overlimit1(9)tipc_sk_overlimit2(9)tipc_sk_dump(9)
and that's the page!! πβ¨ this lil masterpiece lives in ./net/tipc, dated October 2026, and she's filed under tipc_getname(9). go forth and get those names, bestie. slay. ππ¦π
π¦ 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