'\" t .\" Title: nand_get_device .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: Internal Functions Provided .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "NAND_GET_DEVICE" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "Internal Functions Provided" .\" ----------------------------------------------------------------- .\" * 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" nand_get_device \- [GENERIC] Get chip for selected access .SH "SYNOPSIS" .HP \w'int\ nand_get_device('u .BI "int nand_get_device(struct\ mtd_info\ *\ " "mtd" ", int\ " "new_state" ");" .SH "ARGUMENTS" .PP \fIstruct mtd_info * mtd\fR .RS 4 MTD device structure .RE .PP \fIint new_state\fR .RS 4 the state which is requested .RE .SH "DESCRIPTION" .PP Get the device and lock it for exclusive access .SH "AUTHOR" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br