---
name: "set_nlink"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/set_nlink"
---

# set\_nlink(9)

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
