last_fd(9)
last_fd(9) π
okay bestie, this is the Kernel API Manual page for last_fd, and it's lowkey a tiny little icon. it does exactly one job and does it slayfully β¨
NAME πΈ
last_fd β return last valid index into fd table
SYNOPSIS β¨
unsigned last_fd (struct fdtable *fdt );
ARGUMENTS π«Ά
fdtβ File descriptor table.
CONTEXT π
Either rcu read lock or files_lock must be held. no cap, that's the vibe check: you gotta have one of those held before you call this π«Ά
RETURN π
Last valid index into fdtable.
SEE ALSO π₯
Kernel file ./fs/file.c __file_ref_put(9), fd_install(9), file_close_fd_locked(9), sys_close_range(9), file_close_fd(9), get_file_rcu(9), get_file_active(9), receive_fd(9).
okay that's the whole thing, bestie π this page is from ./fs, dated October 2026, and it's the last_fd(9) manual page. go forth and hold that lock π«Άβ¨
π¦ 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