Name

create_pnp_modalias — Create hid/cid(s) string for modalias and uevent

Synopsis

int create_pnp_modalias (struct acpi_device * acpi_dev,
 char * modalias,
 int size);
 

Arguments

acpi_dev

ACPI device object.

modalias

Buffer to print into.

size

Size of the buffer.

Description

Creates hid/cid(s) string needed for modalias and uevent e.g. on a device with hid:IBM0001 and cid:ACPI0001 you get:

modalias

"acpi:IBM0001:ACPI0001"

Return

0: no _HID and no _CID -EINVAL: output error -ENOMEM: output is truncated