ahci_platform_init_host(9)
β¨ ahci_platform_init_host β¨
okay so this page is from the Kernel API Manual (the ahci_platform_init_host(9) entry, to be exact) and it's literally about bringing up an ahci-platform host π
like, the whole glow-up from "just a platform device" to "fully registered host" β no cap.
πΈ NAME πΈ
ahci_platform_init_host β bring up an ahci-platform host π
π¦ SYNOPSIS π¦
int ahci_platform_init_host (struct platform_device *pdev , struct
ahci_host_priv *hpriv , const struct ata_port_info *pi_template , const
struct scsi_host_template *sht );
π ARGUMENTS π
pdevβ the platform device pointer for the host, like, the main character of this whole situation πhprivβ the ahci-host private data for the host, aka its personal lore π«Άpi_templateβ the template for theata_port_infoto use, slay β¨shtβ thescsi_host_templateto use when registering, iconic fr fr
π DESCRIPTION π
so basically this function does all the usual steps needed to bring up an ahci-platform host β the whole routine, none skipped, periodt π
β οΈ big heads-up bestie: any necessary resources (likeclks,phys, etc.) must be initialized / enabled before calling this. Like, that's on you, not on the function π it's giving "prep work is your job" energy.
β RETURN β
0 on success, otherwise a negative error code π β so zero is the slay outcome, negative means something went sideways π
π§ SEE ALSO π§
- Kernel file
./drivers/ata/libahci_platform.cπ ahci_platform_enable_phys(9),ahci_platform_disable_phys(9),ahci_platform_find_clk(9),ahci_platform_enable_clks(9),ahci_platform_disable_clks(9),ahci_platform_deassert_rsts(9),ahci_platform_assert_rsts(9),ahci_platform_enable_regulators(9),ahci_platform_disable_regulators(9),ahci_platform_enable_resources(9),ahci_platform_disable_resources(9),ahci_platform_get_resources(9),ahci_platform_shutdown(9),ahci_platform_suspend_host(9),ahci_platform_resume_host(9),ahci_platform_suspend(9),ahci_platform_resume(9)
and that's the whole page bestie, you ate π this one came out of ./drivers/ata in October 2026, from the Kernel API Manual, ahci_platform_init_host(9) β go forth and bring up that host π¦πΈβ¨
π¦ 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