mtd_ooblayout_get_databytes(9)
β¨ NAME β¨
okay bestie, welcome to mtd_ooblayout_get_databytes(9) from the Kernel API Manual β and this one is literally here to extract data bytes from the oob buffer. no cap, that's the whole iconique job π
πΈ SYNOPSIS πΈ
the signature is giving very βkernel function realnessβ, so here it is exactly:
int mtd_ooblayout_get_databytes (struct mtd_info *mtd , u8 *databuf ,
const u8 *oobbuf , int start , int nbytes );
π ARGUMENTS π
mtdβ the mtd info structure, aka the main character that tells us what's what π«Άdatabufβ destination buffer to store ECC bytes, literally where the bytes are headed πoobbufβ the OOB buffer, no cap π¦startβ first ECC byte to retrieve, your starting point bestie β¨nbytesβ number of ECC bytes to retrieve, like how many we're pulling π₯
π¦ DESCRIPTION π¦
so it works like mtd_ooblayout_get_bytes, except it acts on free bytes. that's the vibe check, periodt π
returns zero on success, a negative error code otherwise β that's the whole mood π
π SEE ALSO π
Kernel file ./drivers/mtd/mtdcore.c β and the whole friend group is: mtd_wunit_to_pairing_info(9), mtd_pairing_info_to_wunit(9), mtd_pairing_groups(9), add_mtd_device(9), del_mtd_device(9), mtd_device_parse_register(9), mtd_device_unregister(9), register_mtd_user(9), unregister_mtd_user(9), get_mtd_device(9), of_get_mtd_device_by_node(9), get_mtd_device_nm(9), mtd_ooblayout_ecc(9), mtd_ooblayout_free(9), mtd_ooblayout_find_region(9), mtd_ooblayout_find_eccregion(9), mtd_ooblayout_get_bytes(9), mtd_ooblayout_set_bytes(9), mtd_ooblayout_count_bytes(9), mtd_ooblayout_get_eccbytes(9), mtd_ooblayout_set_eccbytes(9), mtd_ooblayout_set_databytes(9), mtd_ooblayout_count_freebytes(9), mtd_ooblayout_count_eccbytes(9), mtd_kmalloc_up_to(9) β slay, go read them too π
mwah π this page comes from ./drivers/mtd, dated October 2026, and yes bestie it's still mtd_ooblayout_get_databytes(9) β iconic, honestly ππ
π¦ 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