spi_nor_sele...niform_erase(9)
π spi_nor_select_uniform_erase β Kernel API Manual (section 9)
okay so bestie, gather round, because this one is a kernel function and it lives in the manual pages for section 9. We're talking spi_nor_select_uniform_erase(9) β say that five times fast, I dare you. π«Ά
β¨ NAME β¨
spi_nor_select_uniform_erase β select the optimum uniform erase type. that's it, that's the whole vibe: pick the best one. π
πΈ SYNOPSIS πΈ
const struct spi_nor_erase_type * spi_nor_select_uniform_erase (struct
spi_nor_erase_map *map );
literally just one argument, no cap. Look at that const struct spi_nor_erase_type * return type β she's giving "pointer to something you must not touch" energy and honestly? iconic. π
π ARGUMENTS π
mapβ the erase map of the SPI NOR. yes that's the whole description. it's the map, bestie, she contains multitudes (of erase types). πΊοΈβ¨
π¦ DESCRIPTION π¦
okay so listen. Once the optimum uniform sector erase command is found, this function disables all the other ones. That's it. That's the job. She finds the winner of the erase-type pageant and then personally sends everyone else home. ππ
no runner-ups, no participation trophies. one erase type to rule them all. periodt.
β RETURN β
- pointer to erase type on success β
NULLotherwise π
so like, always check her return value, bestie. don't be out here dereferencing NULL, that's not the look. π
π SEE ALSO π
Kernel file ./drivers/mtd/spi-nor/core.c, plus this whole friend group (all section 9, all here, all accounted for, I would never lose one of them):
spi_nor_get_cmd_ext(9)spi_nor_spimem_setup_op(9)spi_nor_spimem_bounce(9)spi_nor_spimem_exec_op(9)spi_nor_spimem_read_data(9)spi_nor_read_data(9)spi_nor_spimem_write_data(9)spi_nor_write_data(9)spi_nor_read_any_reg(9)spi_nor_write_any_volatile_reg(9)spi_nor_write_enable(9)spi_nor_write_disable(9)spi_nor_read_id(9)spi_nor_read_sr(9)spi_nor_read_cr(9)spi_nor_set_4byte_addr_mode_en4b_ex4b(9)spi_nor_set_4byte_addr_mode_wren_en4b_ex4b(9)spi_nor_set_4byte_addr_mode_brwr(9)spi_nor_sr_ready(9)spi_nor_use_parallel_locking(9)spi_nor_ready(9)spi_nor_wait_till_ready_with_timeout(9)spi_nor_wait_till_ready(9)spi_nor_global_block_unlock(9)spi_nor_write_sr(9)spi_nor_write_sr1_and_check(9)spi_nor_write_16bit_sr_and_check(9)spi_nor_write_16bit_cr_and_check(9)spi_nor_write_16bit_sr_cr_and_check(9)spi_nor_write_sr_and_check(9)spi_nor_write_sr_cr_and_check(9)spi_nor_write_sr2(9)spi_nor_read_sr2(9)spi_nor_erase_die(9)spi_nor_div_by_erase_size(9)spi_nor_find_best_erase_type(9)spi_nor_init_erase_cmd(9)spi_nor_destroy_erase_cmd_list(9)spi_nor_init_erase_cmd_list(9)spi_nor_erase_multi_sectors(9)spi_nor_sr1_bit6_quad_enable(9)spi_nor_sr2_bit1_quad_enable(9)spi_nor_sr2_bit7_quad_enable(9)spi_nor_spimem_check_read_pp_op(9)spi_nor_spimem_check_readop(9)spi_nor_spimem_check_pp(9)spi_nor_spimem_adjust_hwcaps(9)spi_nor_set_erase_type(9)spi_nor_mask_erase_type(9)spi_nor_init_uniform_erase_map(9)spi_nor_manufacturer_init_params(9)spi_nor_no_sfdp_init_params(9)spi_nor_init_flags(9)spi_nor_init_fixup_flags(9)spi_nor_late_init_params(9)spi_nor_sfdp_init_params_deprecated(9)spi_nor_init_params_deprecated(9)spi_nor_init_default_params(9)spi_nor_init_params(9)spi_nor_quad_enable(9)spi_nor_set_4byte_addr_mode(9)spi_nor_soft_reset(9)
ngl that's a long guest list but every single one of them got an invite, so don't come for me about it. π
okay that's the whole tour, bestie!! this page ships from ./drivers/mtd/spi-nor and it's dated October 2026 β bookmark it, cite it, print it out and put it on your wall, whatever feels right. mwah!! π§ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms