'\" t .\" Title: mark_bbt_block_bad .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Internal Functions Provided .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "MARK_BBT_BLOCK_BAD" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "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" mark_bbt_block_bad \- Mark one of the block reserved for BBT bad .SH "SYNOPSIS" .HP \w'void\ mark_bbt_block_bad('u .BI "void mark_bbt_block_bad(struct\ nand_chip\ *\ " "this" ", struct\ nand_bbt_descr\ *\ " "td" ", int\ " "chip" ", int\ " "block" ");" .SH "ARGUMENTS" .PP \fIstruct nand_chip * this\fR .RS 4 the NAND device .RE .PP \fIstruct nand_bbt_descr * td\fR .RS 4 the BBT description .RE .PP \fIint chip\fR .RS 4 the CHIP selector .RE .PP \fIint block\fR .RS 4 the BBT block to mark .RE .SH "DESCRIPTION" .PP Blocks reserved for BBT can become bad\&. This functions is an helper to mark such blocks as bad\&. It takes care of updating the in\-memory BBT, marking the block as bad using a bad block marker and invalidating the associated td\->pages[] entry\&. .SH "AUTHOR" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br