gfs2_create(9)
π« gfs2_create(9) π«
okay so bestie, welcome to the Kernel API Manual corner of the group chat β today we're looking at gfs2_create, and honestly? she's the moment. this is the function that makes a file in GFS2. like, out of nothing. main character energy fr fr πΈ
β¨ NAME β¨
gfs2_create β Create a file π
π¦ SYNOPSIS π¦
int gfs2_create (struct mnt_idmap *idmap , struct inode *dir , struct
dentry *dentry , umode_t mode );
like yes she takes four arguments, we'll get to those, don't panic π
π ARGUMENTS π
idmapβ the idmap of the mount that the inode was found from. iykyk, it's the mapping situation for that mount π«Άdirβ the directory you're creating the file in. the location. the venue. the whole vibe πdentryβ the dentry of the new file. that's her little name-tag β¨modeβ the mode of the new file. permissions, personality, the whole fit π
β RETURN β
errno β that's it, that's the whole return. she gives you an errno and you deal with it π
π SEE ALSO π
okay this list is LONG, grab a snack π β kernel file ./fs/gfs2/inode.c plus:
gfs2_set_iop(9)gfs2_inode_lookup(9)gfs2_lookup_by_inum(9)gfs2_lookup_meta(9)gfs2_lookupi(9)create_ok(9)gfs2_init_xattr(9)init_dinode(9)gfs2_trans_da_blks(9)gfs2_create_inode(9)__gfs2_lookup(9)gfs2_link(9)gfs2_unlink_inode(9)gfs2_unlink(9)gfs2_symlink(9)gfs2_mkdir(9)gfs2_mknod(9)gfs2_atomic_open(9)update_moved_ino(9)gfs2_rename(9)gfs2_exchange(9)gfs2_get_link(9)gfs2_permission(9)gfs2_setattr(9)gfs2_getattr(9)
twenty-five besties, all iconic, all worth a read π₯
and that's the page!! no cap, every flag, every argument, every reference is right there. go forth and create files responsibly π
mwah π β this one's from ./fs/gfs2, dated October 2026, and yeah she's page gfs2_create(9) of your favourite Kernel API Manual. bye bestie!! π§
π¦ 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