libie_pci_init_dev(9)
π libie_pci_init_dev β a kernel API manual page (section 9, bestie)
okay so real talk, this is libie_pci_init_dev(9) from the Kernel API Manual, section 9, and it's genuinely such a glow-up moment for your PCI device. she does everything: wakes the device up, asks for her memory, sorts out her DMA masks, and hits the bus-mastering switch. main character energy only β¨
π NAME π
libie_pci_init_dev β enable and configure the device, periodt.
πΈ SYNOPSIS πΈ
int libie_pci_init_dev (struct pci_dev *pdev );
π¦ ARGUMENTS π¦
pdevβ the PCI device information. that's your girl right there, the struct that tells us which device we're setting up π
β¨ DESCRIPTION β¨
okay so what she actually does, no cap:
- enables the device π
- requests memory regions π§
- sets the 64-bit DMA mask and the coherent DMA mask π
- enables bus-mastering π₯
like, that's the whole vibe check. everything's in there, nothing extra, and honestly? she ate.
lowkey important: DMA masks and bus-mastering are not optional little accessories here β they're part of the package, so don't skip the setup and expect the device to slay on its own π
π RETURN π
0 on success, -errno on failure. that's it, that's the whole mood π«Ά
π SEE ALSO π
Kernel file ./drivers/net/ethernet/intel/libie/pci.c
libie_find_mmio_region(9)__libie_pci_get_mmio_addr(9)__libie_pci_map_mmio_region(9)libie_pci_unmap_fltr_regs(9)libie_pci_unmap_all_mmio_regions(9)
and that's the page, bestie π brought to you by the source ./drivers/net/ethernet/intel/l..., dated October 2026, filed under libie_pci_init_dev(9) β mwah, go read the whole intel libie family, iykyk π
π¦ 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