ea_alloc_blk(9)
π 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 astruct 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 π«Ά:
- Kernel file
./fs/gfs2/xattr.c gfs2_listxattr(9)gfs2_iter_unstuffed(9)__gfs2_xattr_get(9)ea_write(9)gfs2_xattr_remove(9)__gfs2_xattr_set(9)gfs2_ea_dealloc(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms