llc_ui_create(9)
π llc_ui_create π
okay so bestie, welcome to the Kernel API Manual β this one's a lil' kernel function called llc_ui_create(9) and honestly? it's giving socket-birth energy. it allocs, it inits, it validates. we love a triple threat. π
β¨ NAME β¨
llc_ui_create β alloc and init a new llc_ui socket. that's it, that's the whole gig. π«Ά
πΈ SYNOPSIS πΈ
int llc_ui_create (struct net *net , struct socket *sock , int protocol
, int kern );
four params, one int coming back atcha. iconic signature tbh. β
π¦ ARGUMENTS π¦
netβ the network namespace, and hear me out: it must be default network. like, it's not a suggestion, it's a vibe check and only one thing passes. πsockβ the socket you're gonna initialize and attach the allocatedskto. this is where the new baby lives. πΌprotocolβ unused. literally sits there looking pretty. not me respecting the parameter anyway. πkernβ tells us whether this is on behalf of the kernel or userspace. main character ambiguity, resolved. π
π DESCRIPTION π
so what actually happens? it allocates and initializes a fresh new llc_ui socket, and it validates that the user actually wants a socket type we have available. no cap, that's the whole thing.
return value time: 0 on success (slay β¨), negative on failure (π). that's the contract, bestie, don't fight it.
π₯ SEE ALSO π₯
the kernel file ./net/llc/af_llc.c is where the magic lives, and it's surrounded by the entire friend group. so many siblings, so much lore:
llc_ui_next_link_no(9)llc_proto_type(9)llc_ui_addr_null(9)llc_ui_header_len(9)llc_ui_send_data(9)llc_ui_release(9)llc_ui_autoport(9)llc_ui_autobind(9)llc_ui_bind(9)llc_ui_shutdown(9)llc_ui_connect(9)llc_ui_listen(9)llc_ui_accept(9)llc_ui_recvmsg(9)llc_ui_sendmsg(9)llc_ui_getname(9)llc_ui_ioctl(9)llc_ui_setsockopt(9)llc_ui_getsockopt(9)
like, they're all in the group chat. go say hi. π«Ά
ngl the whole page is small but it ate. short king behavior. π
and that's the tea, bestie π
β this page came from ./net/llc, dated October 2026, and yeah it's llc_ui_create(9), so you already know. byeee π¦β¨
π¦ 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