spi_nor_read...p_dma_unsafe(9)
π
spi_nor_read_sfdp_dma_unsafe(9) π
okay so this is the Kernel API Manual page for the long-name queen herself, and she's here to read Serial Flash Discoverable Parameters. bestie, the function name is doing cardio, but the plot is simple. β¨
β¨ NAME β¨
spi_nor_read_sfdp_dma_unsafe β read Serial Flash Discoverable Parameters.
πΈ SYNOPSIS πΈ
int spi_nor_read_sfdp_dma_unsafe (struct spi_nor *nor , u32 addr , size_t len , void *buf );
π ARGUMENTS π
norβ pointer to astruct spi_nor.addrβ offset in the SFDP area to start reading data from.lenβ number of bytes to read.bufβ buffer where the SFDP data are copied into.
π¦ DESCRIPTION π¦
so the move here is: this wraps spi_nor_read_sfdp using a kmalloc'ed bounce buffer, because buf is now not guaranteed to be dma-safe. that's the whole vibe. π«Ά
π RETURN π
-ENOMEMifkmallocfails.- the return code of
spi_nor_read_sfdpotherwise.
π₯ SEE ALSO π₯
Kernel file: ./drivers/mtd/spi-nor/sfdp.c
spi_nor_read_raw(9)spi_nor_read_sfdp(9)spi_nor_set_erase_settings_from_bfpt(9)spi_nor_map_cmp_erase_type(9)spi_nor_sort_erase_mask(9)spi_nor_regions_sort_erase_types(9)spi_nor_parse_bfpt(9)spi_nor_smpt_addr_nbytes(9)spi_nor_smpt_read_dummy(9)spi_nor_get_map_in_use(9)spi_nor_region_check_overlay(9)spi_nor_init_non_uniform_erase_map(9)spi_nor_parse_smpt(9)spi_nor_parse_4bait(9)spi_nor_parse_profile1(9)spi_nor_parse_sccr(9)spi_nor_parse_sccr_mc(9)spi_nor_post_sfdp_fixups(9)spi_nor_check_sfdp_signature(9)spi_nor_parse_sfdp(9)
okay bestie, that's the whole page π β source/version: ./drivers/mtd/spi-nor, dated October 2026, and the manual page is spi_nor_read...p_dma_unsafe(9). slay. π
π¦ 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