set_nlink
Prev | Inode Handling | Next

## 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.

Prev | Up | Next
clear_nlink | Home | inc_nlink