ksmbd_vfs_truncate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ksmbd_vfs_truncate(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’… this one's a little function called ksmbd_vfs_truncate and honestly? she's giving tiny-but-mighty. no cap.


🌸 NAME 🌸

ksmbd_vfs_truncate β€” literally the vfs helper for smb file truncate πŸŽ€ like that's her whole job and she does it.


πŸ¦‹ SYNOPSIS πŸ¦‹

int ksmbd_vfs_truncate (struct ksmbd_work *work , struct ksmbd_file *fp
, loff_t size );

iconic signature, don't touch it ✨


πŸ’œ ARGUMENTS πŸ’œ

  • work β€” the work. yeah. that's the whole description. she said "no further comment" πŸ’€
  • fp β€” the ksmbd file pointer 🫢 your lil handle to the file in question.
  • size β€” truncate to given size πŸ“ that's the number, bestie, the new size. periodt.

⭐ RETURN ⭐

0 on success, otherwise error 😭 so like, zero means slay, anything else means go check the vibes (the error).


🌈 SEE ALSO 🌈

Kernel file ./fs/smb/server/vfs.c β€” go read the source, iykyk πŸ‘‘

like, the whole friend group 🫢 collect them all, fr fr.


mwah πŸ’‹ this page came to you from the source ./fs/smb/server, stamped October 2026, and filed under ksmbd_vfs_truncate(9) β€” bye bestie, go truncate something responsibly πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from