ext2_splice_branch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ ext2_splice_branch(9) β€” Kernel API Manual πŸŽ€

πŸ’– NAME πŸ’–

ext2_splice_branch β€” splice the allocated branch onto inode. That's the whole name, bestie, and it ate. πŸ’…


✨ SYNOPSIS ✨

void ext2_splice_branch (struct inode *inode , long block , Indirect
       *where , int num , int blks );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • inode β€” owner. Like, the owner. That's the vibe.
  • block β€” (logical) number of block we are adding.
  • where β€” location of missing link.
  • num β€” number of indirect blocks we are adding.
  • blks β€” number of direct blocks we are adding.

🌸 DESCRIPTION 🌸

Okay so this function fills the missing link and does all the housekeeping needed in inode (->i_blocks, etc.). In case of success we end up with the full chain to new block and return 0. No cap, that's literally the whole glow-up. ✨

🌈 SEE ALSO 🌈

Kernel file ./fs/ext2/inode.c β€” and the whole friend group: ext2_block_to_path(9), ext2_get_branch(9), ext2_find_near(9), ext2_find_goal(9), ext2_blks_to_allocate(9), ext2_alloc_blocks(9), ext2_alloc_branch(9), ext2_find_shared(9), ext2_free_data(9), ext2_free_branches(9). 🫢


From ./fs/ext2, dated October 2026 β€” page ext2_splice_branch(9). Bye bestie, slay your kernel adventures πŸ’…βœ¨

πŸ“¦ where this page comes from