1CHECK_PATTERN(9) Internal Functions Provided CHECK_PATTERN(9)
2
3
4
6 check_pattern - [GENERIC] check if a pattern is in the buffer
7
9 int check_pattern(uint8_t * buf, int len, int paglen,
10 struct nand_bbt_descr * td);
11
13 buf
14 the buffer to search
15
16 len
17 the length of buffer to search
18
19 paglen
20 the pagelength
21
22 td
23 search pattern descriptor
24
26 Check for a pattern at the given place. Used to search bad block tables
27 and good / bad block identifiers. If the SCAN_EMPTY option is set then
28 check, if all bytes except the pattern area contain 0xff
29
31 Thomas Gleixner <tglx@linutronix.de>
32 Author.
33
35Kernel Hackers Manual 2.6. June 2019 CHECK_PATTERN(9)