fd_install(9)
π fd_install(9) π
okay bestie, welcome to the Kernel API Manual page for fd_install(9) β the function that literally installs a file pointer in the fd array. no cap, that's the whole plot. π
β¨ NAME β¨
fd_install β install a file pointer in the fd array. that's it, that's the gig. π¦
πΈ SYNOPSIS πΈ
void fd_install (unsigned int fd , struct file *file );
π ARGUMENTS π
fdβ file descriptor to install the file in. that's the slot, bestie. β¨fileβ the file to install. the main character being placed. π
π¦ DESCRIPTION π¦
This consumes the "file" refcount, so callers should treat it as if they had called fput(file).
β οΈ refcount vibes: the reference gets consumed by this call, so act like you already did fput(file). don't forget, okay? π
π SEE ALSO π
- Kernel file
./fs/file.c:__file_ref_put(9),file_close_fd_locked(9),last_fd(9),sys_close_range(9),file_close_fd(9),get_file_rcu(9),get_file_active(9),receive_fd(9)
go read these next, iykyk π
mwah π that's the page, bestie. brought to you by ./fs and dated October 2026. slay. π
π¦ 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