mnt_idmap_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mnt_idmap_put(9) πŸ’–

Okay so bestie, welcome to mnt_idmap_put(9) from the Kernel API Manual β€” yes, that's the manual name, and we're about to make idmapping reference-counting make sense. 🫢


✨ NAME ✨

mnt_idmap_put β€” put a reference to an idmapping πŸ‘‘

🌸 SYNOPSIS 🌸

void mnt_idmap_put (struct mnt_idmap *idmap );

πŸŽ€ ARGUMENTS πŸŽ€

  • idmap β€” the idmap to put the reference on. That's the one, bestie. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

If this is a non-initial idmapping, put the reference count when a mount is released and free it if we're the last user.

Translation for the group chat: when a mount gets released, you drop the reference count on that idmap β€” but only if it's a non-initial idmapping β€” and if we're the last user, it gets freed. Slay. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/mnt_idmapping.c β€” plus the whole friend group: initial_idmapping(9), make_vfsuid(9), make_vfsgid(9), from_vfsuid(9), from_vfsgid(9), vfsgid_in_group_p(9), mnt_idmap_get(9). πŸ’–


That's the whole vibe! Cute little sign-off: this page comes from ./fs, dated October 2026, and it's literally mnt_idmap_put(9). Bye bestie! πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from