Functions for Generating References to Driver Routines
Detailed Description
These functions will most likely be implemented as macros. They are a necessary part of the portable API to guarantee portability. The symbol
type in here is the same symbol passed to the associated signature-generating macro.
These macros must be used whenever referring to a driver signature function, for instance when storing or passing a pointer to the function.
Function Documentation
Generate a reference to an OS_DEV_CLOSE() function
- Parameters:
-
| function_name | The name of the close function being referenced. |
- Returns:
- A reference to the function
Generate a reference to an OS_DEV_INIT() function
- Parameters:
-
| function_name | The name of the init function being referenced. |
- Returns:
- A reference to the function
Generate a reference to an OS_DEV_IOCTL() function
- Parameters:
-
| function_name | The name of the ioctl function being referenced. |
- Returns:
- A reference to the function
Generate a reference to an OS_DEV_ISR() function
- Parameters:
-
| function_name | The name of the isr being referenced. |
- Returns:
- a reference to the function
Generate a reference to an OS_DEV_OPEN() function
- Parameters:
-
| function_name | The name of the open function being referenced. |
- Returns:
- A reference to the function
Generate a reference to an OS_DEV_READ() function
- Parameters:
-
| function_name | The name of the read function being referenced. |
- Returns:
- A reference to the function
Generate a reference to an OS_DEV_SHUTDOWN() function
- Parameters:
-
| function_name | The name of the shutdown function being referenced. |
- Returns:
- A reference to the function
Generate a reference to an OS_DEV_WRITE() function
- Parameters:
-
| function_name | The name of the write function being referenced. |
- Returns:
- A reference to the function