seq_lseek(9)
π seq_lseek(9) β so you found yourself in the Kernel API Manual, bestie
okay so picture this: you're poking around the kernel, you're in seq_file land, and you need a ->llseek() method. That's literally what seq_lseek is. Let me tell you everything π«Ά
β¨ NAME β¨
seq_lseek β the ->llseek() method for sequential files. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
loff_t seq_lseek (struct file *file , loff_t offset , int whence );
π¦ ARGUMENTS π¦
fileβ the file in question, aka the main character of this whole operation πoffsetβ your new position, where you wanna bewhenceβ0for absolute,1for relative position. those are the only two numbers, don't get creative π
β DESCRIPTION β
It's the ready-made ->f_op->llseek. like, pre-built, off the rack, no assembly required. you just point at it and slay β¨
π₯ SEE ALSO π₯
Kernel file ./fs/seq_file.c β and honestly the whole seq_file friend group showed up, look at them all:
seq_open(9)seq_read(9)seq_release(9)seq_escape_mem(9)seq_mangle_path(9)seq_path(9)seq_file_path(9)seq_put_decimal_ull_width(9)seq_put_hex_ll(9)seq_write(9)seq_pad(9)seq_hlist_start(9)seq_hlist_start_head(9)seq_hlist_next(9)seq_hlist_start_rcu(9)seq_hlist_start_head_rcu(9)seq_hlist_next_rcu(9)seq_hlist_start_percpu(9)seq_hlist_next_percpu(9)
ngl, the whole hlist crew being here is giving "invited the entire group chat to the function" energy and honestly? iconic. iykyk π
and that's the page, bestie! this one came out of ./fs and it's dated October 2026, filed under seq_lseek(9) β go forth and seek sequentially, 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