Name

check_pattern — [GENERIC] check if a pattern is in the buffer

Synopsis

int check_pattern (uint8_t * buf,
 int len,
 int paglen,
 struct nand_bbt_descr * td);
 

Arguments

uint8_t * buf

the buffer to search

int len

the length of buffer to search

int paglen

the pagelength

struct nand_bbt_descr * td

search pattern descriptor

Description

Check for a pattern at the given place. Used to search bad block tables and good / bad block identifiers.