PLATFORM_MATCH
Section: (9)
Updated: 09 October 2005
Index
Return to Main Contents
NAME
platform_match - bind platform device to platform driver.
SYNOPSIS
"SYNOPSIS"
int platform_match (struct device * dev, struct device_driver * drv);
ARGUMENTS
- dev
-
device.
- drv
-
driver.
PLATFORM DEVICE IDS ARE ASSUMED TO BE ENCODED LIKE THIS
"<name><instance>``, where <name> is a short description of the
type of device, like ''pci`` or ''floppy``, and <instance> is the
enumerated instance of the device, like '0' or '42'.
Driver IDs are simply ''<name>".
So, extract the <name> from the platform_device structure,
and compare it against the name of the driver. Return whether
they match or not.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- PLATFORM DEVICE IDS ARE ASSUMED TO BE ENCODED LIKE THIS
-
This document was created by
man2html,
using the manual pages.
Time: 00:02:38 GMT, October 09, 2005