Download presentation
Presentation is loading. Please wait.
Published byAron Morris Modified over 6 years ago
1
add@/sys/bus/platform/drivers nt-keypad
struct bus_type platform_bus_type bus_register(&platform_bus_type); struct device_driver aesop_device_driver name "platform" .dev_attrs platform_dev_attrs .match platform_match .uevent platform_uevent .p subsys list name "platform" kobj entry parent kset ktype container_of(n, struct klist_node, n_node); n - (int)&((struct klist_node*)0)-> n_node sysfs_dirent kref 3 state_initialized 1 state_in_sysfs 1 state_add_uevent_sent state_remove_uevent_sent uevent_ops .sysfs_ops &bus_sysfs_ops drivers_kset devices_kset klist_devices_get klist_devices_put klist_devices klist_drivers drivers_autoprobe 1 bus subsys list subsys list name "driver" name "device" kobj entry entry kobj parent parent kset kset ktype ktype sysfs_dirent sysfs_dirent kref 3 kref 2 state_initialized state_initialized 1 1 state_in_sysfs name 1 state_in_sysfs 1 "nt-keypad" state_add_uevent_sent bus state_add_uevent_sent 1 state_remove_uevent_sent state_remove_uevent_sent probe aesop_keypad_probe uevent_ops remove uevent_ops aesop_keypad_remove p struct driver_private struct driver_private name kobj name "nt-keypad" "nt-keypad" kobj name entry "nt-keypad" entry parent parent kset kset kobj_type .sysfs_ops .sysfs_ops &driver_sysfs_ops &dev_sysfs_ops kobj_type sysfs_dirent sysfs_dirent kref 1 state_initialized kref 2 1 state_initialized state_in_sysfs 1 1 state_in_sysfs state_add_uevent_sent 1 state_add_uevent_sent state_remove_uevent_sent klist_children_get klist_children_put state_remove_uevent_sent klist_devices klist_children n_klist knode_bus n_node n_klist knode_parent n_node n_ref 1 driver head data end n_ref tail n_klist nt-keypad knode_driver n_node n_ref DEVPATH=/sys/bus/platform/drivers ACTION="add" SUBSYSTEM="nt-keypad" n_klist knode_bus n_node n_ref parent type bus driver
2
vi /usr/src/linux/arch/arm/mach-s5pc100/mach-smdkc100.c
static struct platform_device *smdkc100_devices[] __initdata = { ... &s3c_device_ts, &s3c_device_adc, } platform_add_devices(smdkc100_devices, ARRAY_SIZE(smdkc100_devices)); platform_device_register(struct platform_device *pdev); __mach_desc_SMDKC100
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.