'\" t .\" Title: is_global_init .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "IS_GLOBAL_INIT" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Driver Basics" .\" ----------------------------------------------------------------- .\" * 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" is_global_init \- check if a task structure is init\&. Since init is free to have sub\-threads we need to check tgid\&. .SH "SYNOPSIS" .HP \w'int\ is_global_init('u .BI "int is_global_init(struct\ task_struct\ *\ " "tsk" ");" .SH "ARGUMENTS" .PP \fItsk\fR .RS 4 Task structure to be checked\&. .RE .SH "DESCRIPTION" .PP Check if a task structure is the first user space task the kernel created\&. .SH "RETURN" .PP 1 if the task structure is init\&. 0 otherwise\&. .SH "COPYRIGHT" .br