---
name: "__pci_hp_register"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/__pci_hp_register"
---

# \_\_pci\_hp\_register(9)

register a hotplug\_slot with the PCI hotplug subsystem

## NAME

\_\_pci\_hp\_register - register a hotplug\_slot with the PCI hotplug subsystem

## SYNOPSIS

**int \_\_pci\_hp\_register(struct hotplug\_slot \*** *slot***, struct pci\_bus \*** *bus***, int** *devnr***, const char \*** *name***, struct module \*** *owner***, const char \*** *mod\_name***);**

## ARGUMENTS

*slot*

pointer to the struct hotplug\_slot to register

*bus*

bus this slot is on

*devnr*

device number

*name*

name registered with kobject core

*owner*

caller module owner

*mod\_name*

caller module name

## DESCRIPTION

Registers a hotplug slot with the pci hotplug subsystem, which will allow userspace interaction to the slot.

Returns 0 if successful, anything else for an error.

## COPYRIGHT
