seq_lseek(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 be
  • whence β€” 0 for absolute, 1 for 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:


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