Scroll to navigation

SET_NLINK(9) The Linux VFS SET_NLINK(9)

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

April 2019 Kernel Hackers Manual 4.9.