dev_open
Declaration
int dev_open(char *name, int *fd)
Parameter Description
Parameter |
Type |
Description |
|---|---|---|
name |
char * |
Character array used to pass the device name. |
fd |
int * |
Pointer to the device file descriptor |
Function Description
Opens a device, allocates a device file descriptor based on the input device name, and saves the descriptor in the address pointed by the pointer. The fd value is used as the unique identifier of the device in subsequent device operations.
Parent topic: API Reference