quicki2c_dev_init(9)
β¨ quicki2c_dev_init β Kernel API Manual β¨
okay so bestie, we're looking at quicki2c_dev_init(9) from the Kernel API Manual today and honestly? it's giving "let me set up your whole device for you" energy π
this is the function that kicks off a QuickI2C device and gets the THC hardware actually, y'know, alive.
πΈ NAME πΈ
quicki2c_dev_init β Initialize QuickI2C device π
β¨ SYNOPSIS β¨
struct quicki2c_device * quicki2c_dev_init (struct pci_dev *pdev , void
__iomem *mem_addr , const struct quicki2c_ddata *ddata );
π ARGUMENTS π
pdevβ a pointer to the THC PCI device, no cap π«Άmem_addrβ the pointer of MMIO memory address, like the actual doorway to the memory-mapped registers β¨ddataβ points to thequicki2c_ddatastructure πΈ
π₯ DESCRIPTION π₯
So what it does: it allocs the quicki2c_device structure, initializes the THC device, and then configures THC to HIDI2C mode. iconic. it's basically the main character of device bring-up π
And if that all goes well? it enables the THC hardware interrupt. slay β‘
π¦ RETURN π¦
Pointer to the quicki2c_device structure if success, or NULL on failure. that's the whole vibe check β non-NULL means we ate, NULL means something went sideways π
π SEE ALSO π
Kernel file ./drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c β go read it, iykyk π
quicki2c_acpi_get_dsm_property(9)quicki2c_acpi_get_dsd_property(9)quicki2c_get_acpi_resources(9)quicki2c_irq_quick_handler(9)try_recover(9)quicki2c_irq_thread_handler(9)quicki2c_dev_deinit(9)quicki2c_dma_adv_enable(9)quicki2c_dma_adv_disable(9)quicki2c_dma_init(9)quicki2c_dma_deinit(9)quicki2c_alloc_report_buf(9)quicki2c_remove(9)quicki2c_shutdown(9)
anyway that's the tea π this page comes from ./drivers/hid/intel-thc-hid/in... and it's dated October 2026, and the whole thing is filed under quicki2c_dev_init(9). mwah, go forth and init your devices 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