drivers/platform/x86/samsung-laptop.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/samsung-laptop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/samsung-laptop.c- Extension
.c- Size
- 43594 bytes
- Lines
- 1768
- Domain
- Driver Families
- Bucket
- drivers/platform
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/init.hlinux/module.hlinux/delay.hlinux/pci.hlinux/backlight.hlinux/leds.hlinux/dmi.hlinux/platform_device.hlinux/power_supply.hlinux/rfkill.hlinux/acpi.hlinux/seq_file.hlinux/debugfs.hlinux/ctype.hlinux/efi.hlinux/suspend.hacpi/battery.hacpi/video.h
Detected Declarations
struct sabi_datastruct sabi_header_offsetsstruct sabi_commandsstruct sabi_performance_levelstruct sabi_configstruct samsung_laptop_debugstruct samsung_laptopstruct samsung_rfkillstruct samsung_laptopstruct samsung_quirksfunction sabi_commandfunction sabi_set_commandbfunction read_brightnessfunction set_brightnessfunction get_brightnessfunction check_for_stepping_quirkfunction update_statusfunction seclinux_rfkill_setfunction swsmi_wireless_statusfunction swsmi_rfkill_setfunction swsmi_rfkill_queryfunction get_performance_levelfunction set_performance_levelfunction show_battery_life_extender_deprecation_warningfunction read_battery_life_extenderfunction write_battery_life_extenderfunction get_battery_life_extenderfunction set_battery_life_extenderfunction samsung_psy_ext_set_propfunction samsung_psy_ext_get_propfunction samsung_psy_prop_is_writeablefunction samsung_battery_addfunction samsung_battery_removefunction read_usb_chargefunction write_usb_chargefunction get_usb_chargefunction set_usb_chargefunction read_lid_handlingfunction write_lid_handlingfunction get_lid_handlingfunction set_lid_handlingfunction find_signaturefunction samsung_rfkill_exitfunction samsung_new_rfkillfunction samsung_rfkill_init_seclinuxfunction samsung_rfkill_init_swsmifunction samsung_rfkill_initfunction samsung_lid_handling_exit
Annotated Snippet
module_init(samsung_init);
module_exit(samsung_exit);
MODULE_AUTHOR("Greg Kroah-Hartman <gregkh@suse.de>");
MODULE_DESCRIPTION("Samsung Laptop driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/module.h`, `linux/delay.h`, `linux/pci.h`, `linux/backlight.h`, `linux/leds.h`, `linux/dmi.h`.
- Detected declarations: `struct sabi_data`, `struct sabi_header_offsets`, `struct sabi_commands`, `struct sabi_performance_level`, `struct sabi_config`, `struct samsung_laptop_debug`, `struct samsung_laptop`, `struct samsung_rfkill`, `struct samsung_laptop`, `struct samsung_quirks`.
- Atlas domain: Driver Families / drivers/platform.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.