zpci_create_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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


source/version: ./arch/s390/pci, date: October 2026, page: zpci_create_device(9). Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from