nilfs_sufile...egment_usage(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nilfs_sufile_set_segment_usage(9) β€” the kernel API manual, bestie edition πŸŽ€

Okay so real talk, we're in the Kernel API Manual, section 9, and today's main character is nilfs_sufile_set_segment_usage. The vibe? You're literally just setting the usage of a segment. That's it. That's the whole function. Slay. ✨


πŸ¦‹ NAME πŸ¦‹

nilfs_sufile_set_segment_usage β€” set usage of a segment πŸ’–


🌸 SYNOPSIS 🌸

int nilfs_sufile_set_segment_usage (struct inode *sufile , __u64 segnum
, unsigned long nblocks , time64_t modtime );

Not me putting the whole signature in a code block so you can copy it exactly, no cap. 🫢


⭐ ARGUMENTS ⭐

  • sufile β€” inode of segment usage file. yeah, the inode. the segment usage file's whole identity. πŸ‘‘
  • segnum β€” segment number. which segment we're talking about, bestie. πŸ”’
  • nblocks β€” number of live blocks in the segment. live blocks!! not dead ones, we don't do those here. πŸ”₯
  • modtime β€” modification time (option). the little optional timestamp moment. ⏰

🌈 RETURN 🌈

0 on success, or a negative error code on failure. so either it ate and left no crumbs, or it's giving negative error code 😭


🧚 SEE ALSO 🧚

Kernel file ./fs/nilfs2/sufile.c β€” the source of truth, iykyk πŸ’œ

And the whole friend group, fr fr:


lowkey that's the whole page, bestie. go forth and set some segment usage. πŸ’…βœ¨

Sign-off time πŸŽ€ this one's from ./fs/nilfs2, dated October 2026, and it's page nilfs_sufile...egment_usage(9) of the Kernel API Manual β€” yes the header got a little truncated, she's fine, she's iconic, we don't judge. bye bestie, drink some water πŸ“πŸ¦‹πŸ’–

πŸ“¦ where this page comes from