end_creating_path(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 end_creating_path(9) 🌸

okay so this is the Kernel API Manual page for end_creating_path, and it is literally the cleanup bestie for start_creating_path(). lowkey essential, no cap. πŸ’…

πŸŽ€ NAME πŸŽ€

end_creating_path β€” finish a code section started by start_creating_path(). periodt.

✨ SYNOPSIS ✨

the signature is giving β€œsmall function, big cleanup energy”:

       void end_creating_path (const struct path *path , struct dentry *dentry
       );

🫢 ARGUMENTS 🫢

  • path β€” the path instantiated by start_creating_path. yes bestie, that exact one. πŸ¦‹
  • dentry β€” the dentry returned by start_creating_path. it came from there, so hand it back. πŸŽ€

πŸ’– DESCRIPTION πŸ’–

okay so end_creating_path unlocks the locks that start_creating_path took and drops the references that were taken. it’s the β€œok we’re done here, clean up your mess” moment. ✨

⚠️ bestie, listen: this should only be called if start_creating_path returned a non-error. do not call it just for fun. no cap.

if vfs_mkdir was called and it returned an error, that error should be passed to end_creating_path together with the path. like, bring the error and the path to the cleanup party. 🫢

🌈 SEE ALSO 🌈

the SEE ALSO crew is Kernel file ./fs/namei.c plus this whole iconic list:

mwah πŸ’‹ source/version is ./fs, date is October 2026, and the page is end_creating_path(9).

πŸ“¦ where this page comes from