'\" t .\" Title: set_nlink .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SET_NLINK" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "The Linux VFS" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" set_nlink \- directly set an inode\*(Aqs link count .SH "SYNOPSIS" .HP \w'void\ set_nlink('u .BI "void set_nlink(struct\ inode\ *\ " "inode" ", unsigned\ int\ " "nlink" ");" .SH "ARGUMENTS" .PP \fIinode\fR .RS 4 inode .RE .PP \fInlink\fR .RS 4 new nlink (should be non\-zero) .RE .SH "DESCRIPTION" .PP This is a low\-level filesystem helper to replace any direct filesystem manipulation of i_nlink\&. .SH "COPYRIGHT" .br