create_hdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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


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