'\" t .\" Title: nand_block_checkbad .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Internal Functions Provided .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "NAND_BLOCK_CHECKBAD" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "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_block_checkbad \- [GENERIC] Check if a block is marked bad .SH "SYNOPSIS" .HP \w'int\ nand_block_checkbad('u .BI "int nand_block_checkbad(struct\ mtd_info\ *\ " "mtd" ", loff_t\ " "ofs" ", int\ " "allowbbt" ");" .SH "ARGUMENTS" .PP \fImtd\fR .RS 4 MTD device structure .RE .PP \fIofs\fR .RS 4 offset from device start .RE .PP \fIallowbbt\fR .RS 4 1, if its allowed to access the bbt area .RE .SH "DESCRIPTION" .PP Check, if the block is bad\&. Either by reading the bad block table or calling of the scan function\&. .SH "AUTHOR" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br