pm8001_mem_alloc(9)
π pm8001_mem_alloc(9) β the Kernel API Manual moment π
Okay so bestie, we're in the Kernel API Manual today and this page is literally called pm8001_mem_alloc(9) β say that three times fast, I dare you π«Ά. It's a lil kernel-API page about grabbing memory for pm8001, and honestly? It's giving "small but mighty" β¨.
πΈ NAME πΈ
pm8001_mem_alloc β allocate memory for pm8001. That's it, that's the whole vibe π
.
β SYNOPSIS β
int pm8001_mem_alloc (struct pci_dev *pdev , void **virt_addr ,
dma_addr_t *pphys_addr , u32 *pphys_addr_hi , u32 *pphys_addr_lo , u32
mem_size , u32 align );
Not me just pasting the whole signature exactly as it is π β seven params, one int return, zero notes. Iconic.
π ARGUMENTS π
Okay so here's the whole cast, each one main-character in their own way π
pdevβ a pci device. Your lil PCI buddy π¦.virt_addrβ the allocated virtual address. Yes, the allocated one π.pphys_addrβ the DMA address for this device. Don't lose it, bestie π.pphys_addr_hiβ the physical address high byte address. The high half π₯.pphys_addr_loβ the physical address low byte address. The low half π.mem_sizeβ memory size. How much memory, exactly. Very on-the-nose, we stan β.alignβ requested byte alignment. Byte alignment that is requested. Periodt π .
That's all seven, and yes, there's no description paragraph and no return-value section β the page is lowkey just vibes and signatures π.
π§ SEE ALSO π§
Bestie, the see-also list is long and honestly it ate π
Kernel file ./drivers/scsi/pm8001/pm8001_sas.c β that's where the magic lives π β plus all of these:
pm8001_find_tag(9)pm8001_tag_free(9)pm8001_tag_alloc(9)pm8001_find_ha_by_dev(9)pm8001_phy_control(9)pm8001_scan_start(9)pm8001_task_prep_smp(9)pm8001_task_prep_ata(9)pm8001_task_prep_internal_abort(9)pm8001_task_prep_ssp_tm(9)pm8001_task_prep_ssp(9)pm8001_queue_command(9)pm8001_ccb_task_free(9)pm8001_alloc_dev(9)pm8001_find_dev(9)pm8001_dev_found_notify(9)pm8001_dev_gone_notify(9)pm8001_I_T_nexus_reset(9)
Eighteen of them. Eighteen!! Go read every single one, iykyk πβ¨
No BUGS section, no RETURN VALUE section, no warnings β this page is short and sweet and we respect that π«Ά
Okay that's the whole page, and now the cute sign-off π: this lil masterpiece lives in ./drivers/scsi/pm8001 and it's stamped October 2026 β so mark your calendar bestie, that's when this page said what it said ποΈπ. Byeee! πΈπ
β¨
π¦ 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