ksmbd_tcp_read(9)
okay bestie, welcome to ksmbd_tcp_read(9) from the Kernel API Manual β this is literally the page about reading data from a socket into the buffer you give it. β¨ No cap, it's a little function with big "socket data goes here" energy. π
π NAME π
ksmbd_tcp_read β read data from socket in given buffer. That's the whole vibe: socket data lands in your buffer. π«Ά
πΈ SYNOPSIS πΈ
here's the exact signature, character-for-character bestie:
int ksmbd_tcp_read (struct ksmbd_transport *t , char *buf , unsigned int
to_read , int max_retries );
β¨ ARGUMENTS β¨
tβ the TCP transport instance. like, the transport bestie in question. πbufβ the buffer where read data from the socket gets stored. your data goes here, slay. πto_readβ how many bytes to read from the socket. the number, periodt. π’max_retriesβ how many retries happen if reading from the socket fails. resilience era. πͺ
π RETURN π
On success: the number of bytes read from the socket. Otherwise: an error number. That's it, that's the return tea. ππ
π¦ SEE ALSO π¦
the SEE ALSO squad is right here, no skips:
Kernel file ./fs/smb/server/transport_tcp.ckvec_array_init(9)get_conn_iovec(9)ksmbd_tcp_new_connection(9)ksmbd_kthread_fn(9)ksmbd_tcp_run_kthread(9)ksmbd_tcp_readv(9)create_socket(9)
okay that's the whole page, bestie. source/version is ./fs/smb/server, dated October 2026, and the page is ksmbd_tcp_read(9) β mwah, bye π
β¨
π¦ 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