kvec_array_init(9)
β¨ NAME β¨
okay bestie, welcome to kvec_array_init(9) β yes, from the Kernel API Manual β and this whole page is about one job: kvec_array_init will initialize a IO vector segment. that's it, that's the name, and it's giving "small function, very important paperwork" π
.
π¦ SYNOPSIS π¦
unsigned int kvec_array_init (struct kvec *new , struct kvec *iov ,
unsigned int nr_segs , size_t bytes );
π ARGUMENTS π
newβ the IO vector that's getting initialized, aka the one getting the glow-up β¨iovβ the base IO vector, the OG source vector you're working from π«Άnr_segsβ the number of segments in the baseiov, literally that count π«bytesβ the total iovec length so far for read, so the byte total you've got up to this point π
π RETURN π
it returns the Number of IO segments β a count of IO segments, no cap. that's the whole return vibe, bestie π
π SEE ALSO π
the Kernel file ./fs/smb/server/transport_tcp.c is in the mix, and the see-also besties are:
get_conn_iovec(9)ksmbd_tcp_new_connection(9)ksmbd_kthread_fn(9)ksmbd_tcp_run_kthread(9)ksmbd_tcp_readv(9)ksmbd_tcp_read(9)create_socket(9)
mwah π β this page is sourced from ./fs/smb/server, dated October 2026, and it's the kvec_array_init(9) manual. byeee, go initialize something cute π
π¦ 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