page_put_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, buckle up: this is page_put_link(9) from the Kernel API Manual, and it's literally the cleanup bestie for symlink references πŸ’…βœ¨

πŸ’– NAME πŸ’–

page_put_link β€” Drop the reference to the symlink. πŸŽ€

✨ SYNOPSIS ✨

void page_put_link (void *arg );

πŸŽ€ ARGUMENTS πŸŽ€

  • arg β€” The folio which contains the symlink. πŸ¦‹

🌸 DESCRIPTION 🌸

This is used internally by page_get_link. It is exported for use by filesystems which need to implement a variant of page_get_link themselves. Despite the apparent symmetry, filesystems which use page_get_link do not need to call page_put_link. no cap, that's the vibe 😌

The argument, while it has a void pointer type, must be a pointer to the folio which was retrieved from the page cache. The delayed_call infrastructure is used to drop the reference count once the caller is done with the symlink. 🫢

bestie, the type says void *, but it must be a pointer to the folio from the page cache β€” do not freestyle this one πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/namei.c β€” and the whole squad is linked in the SEE ALSO group chat 🌈:


mwah πŸ’– β€” source/version: ./fs, dated October 2026, and the page itself is page_put_link(9). bye bestie, go drop that ref responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from