simple_start_creating(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… simple_start_creating β€” from the Kernel API Manual

okay so bestie, we're doing kernel dentry stuff today and honestly? this one is short and sweet. it lives in the kernel's libfs corner of the world and it's literally just the "get ready to make a file" step. no cap.


✨ NAME

simple_start_creating β€” the little prep step before you create a name in a directory. it's giving "stretch before the workout" energy πŸŽ€


🌸 SYNOPSIS

struct dentry * simple_start_creating (struct dentry *parent , const
char *name );

like, it hands you back a struct dentry *, and you feed it a parent and a name. that's the whole vibe πŸ¦‹


🫢 ARGUMENTS

  • parent β€” the directory where you're getting ready to create the name. this is the main character of the operation πŸ’…
  • name β€” the actual name you want to create. the thing you're bringing into existence ✨

πŸ”₯ DESCRIPTION

so here's the whole deal, fr fr: the required lock gets taken, and a lookup happens before you create an object inside a directory. that's it. that's the whole function.

⚠️ and listen β€” no permission checking is performed. none. zero. NOT ME skipping the permission check 😭 so don't come crying to this function if you wanted that handled, because it simply does not do it.

πŸ‘‘ RETURN

you get back a negative dentry β€” which is iconic, because that's exactly the thing you can then hand to vfs_create or something similar and attempt your create on. or you get an error instead. either way, check it, bestie πŸ’€


🌈 SEE ALSO

the whole squad, all from the kernel file ./fs/libfs.c:


and that's the page, bestie 🧚 go forth and create responsibly. this one's from the ./fs source, dated October 2026 β€” periodt. πŸ’–

πŸ“¦ where this page comes from