of_get_pci_domain_nr(9)
okay so bestie, you opened the of_get_pci_domain_nr(9) page from the Kernel API Manual, and honestly? main character energy π
β¨ This one is all about finding the host bridge domain number of a given device node, and the vibe check is: it reads a property and gives you a number or a negative error. No cap.
β¨ NAME β¨
of_get_pci_domain_nr β find the host bridge domain number of the given device node. π
π¦ SYNOPSIS π¦
the signature is literally right here, copy it exactly:
int of_get_pci_domain_nr (struct device_node *node );
π ARGUMENTS π
nodeβ device tree node with the domain information. π¦
π DESCRIPTION π
so this function will try to obtain the host bridge domain number by finding a property called linux,pci-domain of the given device node. It's giving detective energy πβ¨
it returns the associated domain number from DT in the range [0-0xffff], or a negative value if the required property is not found. periodt π
π₯ RETURN π₯
the return values are the whole plot, ngl:
> 0β on success, an associated domain number. π-EINVALβ thelinux,pci-domainproperty does not exist. π-ENODATAβ thelinux,pci-domain"property does not have value.-EOVERFLOWβ invalidlinux,pci-domainproperty value. π
π SEE ALSO π
kernel file ./drivers/pci/of.c is the source spot π‘, and the whole squad is:
pci_set_of_node(9)of_pci_get_devfn(9)of_pci_parse_bus_range(9)of_pci_preserve_config(9)of_pci_check_probe_only(9)devm_of_pci_get_host_bridge_resources(9)of_irq_parse_pci(9)of_irq_parse_and_map_pci(9)of_pci_supply_present(9)of_pci_get_max_link_speed(9)of_pci_get_slot_power_limit(9)of_pci_get_equalization_presets(9)
signed off from the ./drivers/pci source/version πΈ, dated October 2026 π β stay iconic, bestie, and may your device tree always vibe π
π¦ 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