set_nlink (9) - Linux Manuals

set_nlink: directly set an inode's link count

NAME

set_nlink - directly set an inode's link count

SYNOPSIS

void set_nlink(struct inode inode, unsigned int nlink);

ARGUMENTS

inode

inode

nlink

new nlink (should be non-zero)

DESCRIPTION

This is a low-level filesystem helper to replace any direct filesystem manipulation of i_nlink.

COPYRIGHT