ksmbd_tcp_readv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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