generic_file_llseek(9)
π NAME π
generic_file_llseek(9) β from the Kernel API Manual β is the generic llseek implementation for regular files. Yes bestie, regular files. π
β¨ SYNOPSIS β¨
loff_t generic_file_llseek (struct file *file , loff_t offset , int
whence );
πΈ ARGUMENTS πΈ
fileβ thestruct file *filesituation: the file structure to seek on. Main character energy.offsetβ the file offset to seek to. Like, where you're trying to go.whenceβ the type of seek. That's the vibe of the seek, okay?
π¦ DESCRIPTION π¦
Okay so this is a generic implementation of ->llseek, and it's useable for all normal local filesystems. No cap.
It just updates the file offset to the value specified by offset and whence. That's it. That's the whole slay. It's not doing extra side quests β just updating the offset. β¨
π SEE ALSO π
Kernel file ./fs/read_write.c β and the related besties are:
vfs_setpos_cookie(9)vfs_setpos(9)must_set_pos(9)generic_file_llseek_size(9)generic_llseek_cookie(9)fixed_size_llseek(9)no_seek_end_llseek(9)no_seek_end_llseek_size(9)noop_llseek(9)
Signing off from the ./fs source tree, October 2026 edition β generic_file_llseek(9), periodt. π«Άπ
π¦ 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