set_nlink(9)

set_nlink9

Directly set an inode's link count

Usage

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

Arguments

inode

inode

nlink

new nlink (should be non-zero)

Overview

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

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.