Name

set_nlink — directly set an inode's link count

Synopsis

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

Arguments

struct inode * inode

inode

unsigned int nlink

new nlink (should be non-zero)

Description

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