nilfs_get_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” the inode struct 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 πŸ‘‘


okay that’s the whole read, bestie β€” source/version ./fs/nilfs2, dated October 2026 πŸ’–βœ¨

πŸ“¦ where this page comes from