NameGet() - Device Driver
static const CPU_CHAR *FSDev_####_NameGet (void);
File | Called from | Code enabled by |
---|---|---|
| various | N/A |
Device drivers are identified by unique names, on which device names are based. For example, the unique name for the NAND flash driver is “nand”; the NAND devices will be named “nand:0:”, “nand:1:”, etc.
Arguments
None.
Returned Value
Pointer to the device driver name.
Notes/Warnings
- The name must not include the ‘:’ character.
- The name must be constant; each time this function is called, the same name must be returned.
- The device driver
NameGet()
function is called while the caller holds the FS lock.