safe_hardlink_source(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is the Kernel API Manual page for safe_hardlink_source(9), and it is literally about checking for safe hardlink conditions. Bestie, we’re doing this with full facts and full sparkle. πŸ’…βœ¨

🌸 NAME 🌸

safe_hardlink_source β€” check for safe hardlink conditions. That’s the whole assignment. πŸ’–

✨ SYNOPSIS ✨

Here’s the signature, exactly as it is:

bool safe_hardlink_source (struct mnt_idmap *idmap , struct inode *inode
);

It returns a bool, so yes/no energy only. πŸŽ€

πŸ¦‹ ARGUMENTS πŸ¦‹

  • idmap β€” idmap of the mount the inode was found from. tracking the mount origin, iconic.
  • inode β€” the source inode to hardlink from. the source inode, front and center.

πŸ’œ DESCRIPTION πŸ’œ

It returns false if at least one of these conditions applies, bestie β€” not a drill:

  • inode is not a regular file
  • inode is setuid
  • inode is setgid and group-exec
  • access failure for read and write

Otherwise it returns true. slay, that’s the whole decision tree. ✨

🌈 SEE ALSO 🌈

Kernel file ./fs/namei.c is named here, and the whole reference squad follows β€” every single one, in order, no skips: πŸ’«

source/version: ./fs β€’ date: October 2026 β€” that’s the cute sign-off, bestie, mwah πŸ’‹πŸŽ€πŸ’–

πŸ“¦ where this page comes from