table of contents
PLATFORM_DEVICE_REGI(9) | Device drivers infrastructure | PLATFORM_DEVICE_REGI(9) |
NAME¶
platform_device_register_data - add a platform-level device with platform-specific data
SYNOPSIS¶
struct platform_device * platform_device_register_data(struct device * parent, const char * name, int id, const void * data, size_t size);
ARGUMENTS¶
parent
name
id
data
size
DESCRIPTION¶
This function creates a simple platform device that requires minimal resource and memory management. Canned release function freeing memory allocated for the device allows drivers using such devices to be unloaded without waiting for the last reference to the device to be dropped.
Returns struct platform_device pointer on success, or ERR_PTR on error.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |