no_seek_end_llseek(9)
π no_seek_end_llseek(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a little function with a big boundary issue (affectionate). Meet no_seek_end_llseek, the llseek implementation for fixed-sized devices. yeah. she's the one who says "you can look, but you can't sneak past the end." icon behaviour, honestly.
β¨ NAME β¨
no_seek_end_llseek β the llseek implementation for fixed-sized devices π
πΈ SYNOPSIS πΈ
loff_t no_seek_end_llseek (struct file *file , loff_t offset , int
whence );
π¦ ARGUMENTS π¦
fileβ the file structure you're seeking on, bestie. that's the main character right there πoffsetβ the file offset you wanna seek to. like, where are we going πwhenceβ the type of seek. yeah, it's giving "which direction, queen?" π§
π SEE ALSO π
Kernel file ./fs/read_write.c, plus the whole friend group: vfs_setpos_cookie(9), vfs_setpos(9), must_set_pos(9), generic_file_llseek_size(9), generic_llseek_cookie(9), generic_file_llseek(9), fixed_size_llseek(9), no_seek_end_llseek_size(9), noop_llseek(9) β¨
and that's the whole page, no cap π this little gem lives in ./fs and the version vibes are dated October 2026 β go off, king ππ«Ά
π¦ 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