PLATFORM_MATCH

Section: ()
Updated: 06 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 device, 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: 13:31:45 GMT, October 06, 2005