ksmbd_tcp_readv(9)
β¨ NAME β¨
okay so bestie, ksmbd_tcp_readv(9) is from the Kernel API Manual, and it's literally the function that reads data from a socket into the given iovec. no cap, that's the whole vibe. π
πΈ SYNOPSIS πΈ
here's the exact signature, keep it cute and character-for-character:
int ksmbd_tcp_readv (struct tcp_transport *t , struct kvec *iov_orig ,
unsigned int nr_segs , unsigned int to_read , int max_retries );
π ARGUMENTS π
tβ TCP transport instance, aka the transport bestie in question. π«Άiov_origβ base IO vector, the starter iovec, periodt.nr_segsβ number of segments in base iov. yes, count them. β¨to_readβ number of bytes to read from socket. that's the goal. π―max_retriesβ maximum retry count. the patience meter. π
π₯ RETURN π₯
on success, it returns the number of bytes read from socket. otherwise, it returns an error number. so either you get the byte count or you get the error tea. πβ¨
π¦ SEE ALSO π¦
the kernel file ./fs/smb/server/transport_tcp.c is part of the lore β and these are the SEE ALSO besties:
kvec_array_init(9)get_conn_iovec(9)ksmbd_tcp_new_connection(9)ksmbd_kthread_fn(9)ksmbd_tcp_run_kthread(9)ksmbd_tcp_read(9)create_socket(9)
mwah π β this page is signed off from ./fs/smb/server, dated October 2026, and it belongs to ksmbd_tcp_readv(9). π«Άβ¨
π¦ 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