generic_llseek_cookie(9)
π generic_llseek_cookie(9) β Kernel API Manual π
okay so bestie, this is the <pink>generic_llseek_cookie(9)</pink> page from the Kernel API Manual, and itβs giving βversioned llseek implementationβ energy. no cap, all the facts are staying exactly where they belong β I just put them in a cuter outfit. πβ¨
β¨ NAME β¨
generic_llseek_cookie β versioned llseek implementation
π SYNOPSIS π
copy this exactly, bestie β commas and all, do not ghost a single character:
loff_t generic_llseek_cookie (struct file *file , loff_t offset , int whence , u64 *cookie );
πΈ ARGUMENTS πΈ
fileβ the file structure to seek on. yes, thatfile. πoffsetβ the file offset to seek to.whenceβ the type of seek. itβs giving βwhich direction are we goingβ energy.cookieβ the cookie to update. πͺ
π¦ DESCRIPTION π¦
okay so for the general description and all the locking assumptions, youβre gonna want to go see generic_file_llseek β thatβs the reference, bestie. π
the little glow-up here is that, in contrast to generic_file_llseek, this function also resets a specified cookie to indicate that a seek took place. literally the cookie gets updated so everyone knows a seek happened. periodt. β¨πͺ
π SEE ALSO π
- Kernel file
./fs/read_write.c vfs_setpos_cookie(9)vfs_setpos(9)must_set_pos(9)generic_file_llseek_size(9)generic_file_llseek(9)fixed_size_llseek(9)no_seek_end_llseek(9)no_seek_end_llseek_size(9)noop_llseek(9)
source/version: ./fs β’ date: October 2026 β’ page: generic_llseek_cookie(9) β byeee, mwah ππ«ΆπΈ
π¦ 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