STRUCT NILFS_SEGMENT_BUFFER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Kernel API Manual page for struct nilfs_segment_buffer β€” the header title is literally struct nilfs_segment_buffer(9), and we’re folding that manual name right in here instead of copying the boring header line. The NAME entry is:

struct nilfs_segment_buffer β€” Segment buffer. That’s it, that’s the vibe. πŸŽ€


✨ SYNOPSIS ✨

Here’s the struct in all its glory, copied exactly because we do not mess with code, periodt:

       struct nilfs_segment_buffer {
           struct super_block     *sb_super;
           struct list_head        sb_list;
           struct nilfs_segsum_info sb_sum;
           __u64 sb_segnum;
           __u64 sb_nextnum;
           sector_t sb_fseg_start, sb_fseg_end;
           sector_t sb_pseg_start;
           unsigned int            sb_rest_blocks;
           struct list_head        sb_segsum_buffers;
           struct list_head        sb_payload_buffers;
           struct buffer_head     *sb_super_root;
           int sb_nbio;
           atomic_t sb_err;
           struct completion       sb_bio_event;
        };

πŸ’… Members πŸ’…

okay now the member-by-member vibe check β€” every field is here, no skipping, no cap:

  • sb_super β€” back pointer to a struct super_block; it’s giving β€œI know my superblock” energy. πŸ’–
  • sb_list β€” list head to chain this structure; the little chain-link bae. πŸ”—
  • sb_sum β€” on-memory segment summary. Lowkey the memory-side summary. ✨
  • sb_segnum β€” index number of the full segment.
  • sb_nextnum β€” index number of the next full segment.
  • sb_fseg_start β€” start block number of the full segment.
  • sb_fseg_end β€” end block number of the full segment.
  • sb_pseg_start β€” disk block number of partial segment.
  • sb_rest_blocks β€” number of residual blocks in the current segment.
  • sb_segsum_buffers β€” list of buffers for segment summaries.
  • sb_payload_buffers β€” list of buffers for segment payload.
  • sb_super_root β€” pointer to buffer storing a super root block (if exists).
  • sb_nbio β€” number of flying bio requests.
  • sb_err β€” I/O error status.
  • sb_bio_event β€” completion event of log writing.

🌈 SEE ALSO 🌈

  • Kernel file ./fs/nilfs2/segbuf.h
  • struct nilfs_segsum_info(9)

πŸ’– and that’s the whole page, bestie! source/version: ./fs/nilfs2 Β· date: October 2026 Β· page title: struct nilfs_segment_buffer(9) β€” mwah, bye! πŸ’–

πŸ“¦ where this page comes from