create_hdev(9)
π NAME
okay bestie, welcome to the create_hdev(9) page from the Kernel API Manual β¨ this one is all about create_hdev β the function that creates a habanalabs device instance π
β¨ SYNOPSIS
int create_hdev (struct hl_device **dev , struct pci_dev *pdev );
π«Ά ARGUMENTS
devβ this one will hold the pointer to the new habanalabs device structure πpdevβ pointer to the pci device πΈ
π« DESCRIPTION
okay so here's the vibe: create_hdev allocates memory for a habanalabs device and initializes the basic fields β¨
then it identifies the ASIC type π
and finally it allocates an ID (minor) for the device β and that minor-ID part is only for real devices, no cap π
π SEE ALSO
- Kernel file:
./drivers/accel/habanalabs/common/habanalabs_drv.c hl_pci_probe(9)hl_pci_err_detected(9)hl_pci_err_resume(9)hl_pci_err_slot_reset(9)
made with π from the ./drivers/accel/habanalabs/common corner of the kernel, dated October 2026 β catch you in the next manpage, bestie π«Άπ
π¦ 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