zpci_create_device(9)
πΈ NAME πΈ
zpci_create_device β Create a new zpci_dev and add it to the zbus.
okay so this is the zpci_create_device(9) page from the Kernel API Manual, and it is literally the main character of making a zPCI device appear. Bestie, we are allocating and registering, no cap. π
β¨
β¨ SYNOPSIS β¨
struct zpci_dev * zpci_create_device (u32 fid , u32 fh , enum zpci_state state );
π ARGUMENTS π
fidβ Function ID of the device to be created. It is giving βwhich device are we even talking aboutβ energy.fhβ Current Function Handle of the device to be created. The handle of the moment, fr fr.stateβ Initial state after creation β either Standby or Configured. Pick your beginning, bestie.
π¦ DESCRIPTION π¦
It allocates a new struct zpci_dev and queries the platform for its details. The way that works is very βask the platform nicely and hope for a slay.β If successful, the device can subsequently be added to the zPCI subsystem using zpci_add_device. That is the sequel, and yes, it is iconic.
π RETURN π
Returns the zdev on success or an error pointer otherwise. So: good vibes = zdev, bad vibes = error pointer. Vibe check complete. ππ
π SEE ALSO π
Kernel file: ./arch/s390/pci/pci.c
zpci_hot_reset_device(9)zpci_add_device(9)zpci_scan_configured_device(9)zpci_deconfigure_device(9)zpci_device_reserved(9)zpci_clear_error_state(9)zpci_reset_load_store_blocked(9)
source/version: ./arch/s390/pci, date: October 2026, page: zpci_create_device(9). Mwah πβ¨
π¦ 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