centos man page for platform_device_register_simple

Query: platform_device_register_simple

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

PLATFORM_DEVICE_REGI(9) 				   Device drivers infrastructure				   PLATFORM_DEVICE_REGI(9)

NAME
platform_device_register_simple - add a platform-level device and its resources
SYNOPSIS
struct platform_device * platform_device_register_simple(const char * name, int id, const struct resource * res, unsigned int num);
ARGUMENTS
name base name of the device we're adding id instance id res set of resources that needs to be allocated for the device num number of resources
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. This interface is primarily intended for use with legacy drivers which probe hardware directly. Because such drivers create sysfs device nodes themselves, rather than letting system infrastructure handle such device enumeration tasks, they don't fully conform to the Linux driver model. In particular, when such drivers are built as modules, they can't be "hotplugged". Returns struct platform_device pointer on success, or ERR_PTR on error.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 PLATFORM_DEVICE_REGI(9)
Related Man Pages
struct_bus_type(9) - centos
device_create(9) - suse
device_create_vargs(9) - suse
struct_usb_device_driver(9) - suse
device_add_child_ordered(9) - freebsd
Similar Topics in the Unix Linux Community
Best performance UNIX just for HOST Virtualization?
DB2 convert digits to binary format
Shopt -s histappend
CentOS 6 ran out of space, need to reclaim it
Please Welcome Dave Munro to the Moderator Team!