nilfs_get_block(9)
nilfs_get_block(9) π
okay so bestie, welcome to the nilfs_get_block(9) page from the Kernel API Manual. Itβs giving kernel callback that gets a file block on the filesystem energy, and weβre gonna read it together. π«Ά
β¨ NAME β¨
nilfs_get_block β get a file block on the filesystem (callback function). slay. π
πΈ SYNOPSIS πΈ
int nilfs_get_block (struct inode *inode , sector_t blkoff , struct
buffer_head *bh_result , int create );
π ARGUMENTS π
inodeβ theinodestruct of the target file. literally the main character file info. πblkoffβ file block number. yes bestie, the block number. β¨bh_resultβ buffer head to be mapped on. π¦createβ indicates whether allocating the block or not when it has not been allocated yet. so like, allocation-permission energy. π
π DESCRIPTION π
Heads up though: this function does not issue the actual read request of the specified data block. That part is done by VFS. no cap, VFS handles it. π«Ά
π RETURN π
0 on success, or a negative error code on failure. periodt. π
π SEE ALSO π
- Kernel file
./fs/nilfs2/inode.cβstruct nilfs_iget_args(9) nilfs_read_folio(9)nilfs_attach_btree_node_cache(9)nilfs_detach_btree_node_cache(9)nilfs_iget_for_shadow(9)nilfs_write_inode_common(9)nilfs_dirty_inode(9)
okay thatβs the whole read, bestie β source/version ./fs/nilfs2, dated October 2026 πβ¨
π¦ 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