fman_muram_init(9)
πΈ fman_muram_init π
okay so bestie, we're diving into the Kernel API Manual for fman_muram_init(9) β yes, a section-9 function, she's that girl. Let's get into it β¨
π NAME π
fman_muram_init β and honestly? The original page just... leaves the description blank. Nothing. Nada. A whole NAME section with no name-explanation. Iconic of her, lowkey. So no cap, there's no one-liner here β the function name is literally all you get, and the rest of the page does the talking. π«Ά
β SYNOPSIS β
struct muram_info * fman_muram_init (phys_addr_t base , size_t size );
that's the whole vibe check, bestie β she returns a struct muram_info * and takes a phys_addr_t base plus a size_t size. Copy it exactly, no improvising π₯
π ARGUMENTS π
baseβ Pointer to base of memory mapped FM-MURAM. Like, the starting address of the FM-MURAM you've got mapped in. Your launchpad πsizeβ Size of the FM-MURAM partition. How much MURAM we're carving out, fr fr.
π¦ DESCRIPTION π¦
So what she actually does: creates a partition in the MURAM. That's the whole job, and she does it slayfully π
The routine returns a pointer to the MURAM partition, and here's the part you cannot skip β this pointer must be passed as to all other FM-MURAM function calls. Every single one. She's the main character and everybody else needs her pointer to even function. Periodt. π
And a super important heads-up, ngl: no actual initialization or configuration of FM_MURAM hardware is done by this routine. Like, she sets up the partition bookkeeping and nothing else β the hardware itself? Not touched. Don't be out here expecting her to configure things, she's not that kind of function π
β¨ RETURN β¨
- Pointer to the FM-MURAM object π β the good ending
- or
NULLfor Failure π β the bad ending, check your return value bestie
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/freescale/fman/fman_muram.cβ go read the source, iykyk π fman_muram_offset_to_vbase(9)β the offset-to-vbase bestie π§fman_muram_alloc(9)β the allocator, you'll be needing her πfman_muram_free_mem(9)β the one who cleans up after you (free your memory, queen) π
lowkey reminder bestie: she makes the partition, she hands you the pointer, you pass that pointer everywhere, and the hardware configuration is not her problem π₯
and that's the page, bestie! πΈ mwah π
from ./drivers/net/ethernet/freesca... β October 2026, fman_muram_init(9). she's giving kernel API manual realness, and we're obsessed ππ¦β¨
π¦ 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