.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "NAND_BLOCK_CHECKBAD" "9" "09 October 2005" "" ""
.SH NAME
nand_block_checkbad \- [GENERIC] Check if a block is marked bad
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int nand_block_checkbad (struct mtd_info * \fImtd\fB, loff_t \fIofs\fB, int \fIgetchip\fB, int \fIallowbbt\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fImtd\fB\fR
MTD device structure
.TP
\fB\fIofs\fB\fR
offset from device start
.TP
\fB\fIgetchip\fB\fR
0, if the chip is already selected
.TP
\fB\fIallowbbt\fB\fR
1, if its allowed to access the bbt area
.SH "DESCRIPTION"
.PP
Check, if the block is bad. Either by reading the bad block table or
calling of the scan function.