d_delete(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… d_delete(9) β€” the Kernel API Manual, bestie edition πŸŽ€

Okay so picture this: it's giving kernel API manual, it's giving dentry lore, and honestly? We're obsessed. This is d_delete, a function so iconic it got its own page. Let's get into it ✨


🌸 NAME 🌸

d_delete β€” delete a dentry πŸ’€βœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

void d_delete (struct dentry * dentry );

Like, that's the whole signature. void in, void out, no return value to worry your pretty little head about 🫢


πŸ’– ARGUMENTS πŸ’–

  • dentry β€” the dentry you're deleting. That's it. That's the argument. She's the main character of this whole operation πŸ‘‘

🌈 DESCRIPTION 🌈

So here's the tea β˜•: d_delete turns that dentry into a negative dentry if it possibly can. Keyword if possible β€” sometimes the vibe just isn't right and it can't do it.

And if it can't? It instead removes the dentry from the hash queues, so it can be deleted later. Lowkey a "not right now but we'll circle back" situation πŸ™ˆ

That's literally the entire description, no notes, she's efficient πŸ’…


⭐ SEE ALSO ⭐

Kernel file ./fs/dcache.c β€” and like, a whole friend group of related functions, fr fr:

Like, the whole dcache squad came out for this one β€” iykyk 🌸


Ngl bestie, that if possible in the description is doing a lot of heavy lifting. Pay attention to it πŸ’œ

mwah πŸ’‹ that's the page! Brought to you from ./fs in the Kernel API Manual, dated October 2026, and still titled d_delete(9) because we respect the branding. Slay, stay safe, and go delete a dentry responsibly πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from