'\" t .\" Title: nand_lock .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Public Functions Provided .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "NAND_LOCK" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Public 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_lock \- [REPLACEABLE] locks all blocks present in the device .SH "SYNOPSIS" .HP \w'int\ nand_lock('u .BI "int nand_lock(struct\ mtd_info\ *\ " "mtd" ", loff_t\ " "ofs" ", uint64_t\ " "len" ");" .SH "ARGUMENTS" .PP \fImtd\fR .RS 4 mtd info .RE .PP \fIofs\fR .RS 4 offset to start unlock from .RE .PP \fIlen\fR .RS 4 length to unlock .RE .SH "DESCRIPTION" .PP This feature is not supported in many NAND parts\&. \*(AqMicron\*(Aq NAND parts do have this feature, but it allows only to lock all blocks, not for specified range for block\&. Implementing \*(Aqlock\*(Aq feature by making use of \*(Aqunlock\*(Aq, for now\&. .PP Returns lock status\&. .SH "AUTHOR" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br