ea_alloc_blk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ea_alloc_blk β€” the kernel API manual, but make it make sense

okay so bestie, welcome to the ea_alloc_blk(9) page πŸ’– this one lives in the Kernel API Manual, and it's literally all about grabbing a fresh new block for extended attributes. short page, big slay, let's go ✨


🌸 NAME 🌸

ea_alloc_blk β€” allocates a new block for extended attributes.

like, that's the whole vibe. it allocates. a block. for xattrs. periodt πŸ’…


✨ SYNOPSIS ✨

int ea_alloc_blk (struct gfs2_inode *ip , struct buffer_head **bhp );

that's it, that's the signature πŸŽ€ copy it exactly, no cap.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ip β€” a pointer to the inode that's getting extended attributes. it's giving "the main character who's about to have a glow-up" πŸ‘‘
  • bhp β€” pointer to pointer to a struct buffer_head. yes, a double pointer β€” pointer-to-pointer energy fr fr πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

errno

that's the return value, bestie. just errno. not me expecting more and getting exactly one word 😭 that's what the original says, so that's what we're serving.


🌈 SEE ALSO 🌈

lowkey the best part, the whole friend group 🫢:

go read those too, iykyk πŸ’œ


ngl this one's a short read β€” but every word counts, so don't skip the pointer-to-pointer, it's literally the icon of the page ⭐

okay that's the whole page!! big kiss, this one came from ./fs/gfs2 and it's dated October 2026 β€” mark your calendars bestie, future vibes only πŸ—“οΈπŸ’–βœ¨

πŸ“¦ where this page comes from