drivers/firmware/google/gsmi.c
Source file repositories/reference/linux-study-clean/drivers/firmware/google/gsmi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/firmware/google/gsmi.c- Extension
.c- Size
- 29158 bytes
- Lines
- 1097
- Domain
- Driver Families
- Bucket
- drivers/firmware
- 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/types.hlinux/device.hlinux/platform_device.hlinux/errno.hlinux/string.hlinux/spinlock.hlinux/dma-mapping.hlinux/fs.hlinux/slab.hlinux/panic_notifier.hlinux/ioctl.hlinux/acpi.hlinux/io.hlinux/uaccess.hlinux/dmi.hlinux/kdebug.hlinux/reboot.hlinux/efi.hlinux/module.hlinux/ucs2_string.hlinux/suspend.h
Detected Declarations
struct gsmi_bufstruct gsmi_nvram_var_paramstruct gsmi_get_next_var_paramstruct gsmi_set_eventlog_paramstruct gsmi_log_entry_type_1function gsmi_buf_freefunction funcfunction gsmi_get_variablefunction gsmi_get_next_variablefunction gsmi_set_variablefunction eventlog_writefunction gsmi_clear_eventlog_storefunction gsmi_clear_config_storefunction gsmi_shutdown_reasonfunction gsmi_reboot_callbackfunction gsmi_die_callbackfunction gsmi_panic_callbackfunction hash_64function hash_oem_table_idfunction gsmi_system_validfunction gsmi_log_s0ix_infofunction gsmi_log_s0ix_suspendfunction gsmi_log_s0ix_resumefunction gsmi_platform_driver_probefunction gsmi_initfunction gsmi_exitmodule init gsmi_init
Annotated Snippet
module_init(gsmi_init);
module_exit(gsmi_exit);
MODULE_AUTHOR("Google, Inc.");
MODULE_DESCRIPTION("EFI SMI interface for Google platforms");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/types.h`, `linux/device.h`, `linux/platform_device.h`, `linux/errno.h`, `linux/string.h`, `linux/spinlock.h`.
- Detected declarations: `struct gsmi_buf`, `struct gsmi_nvram_var_param`, `struct gsmi_get_next_var_param`, `struct gsmi_set_eventlog_param`, `struct gsmi_log_entry_type_1`, `function gsmi_buf_free`, `function func`, `function gsmi_get_variable`, `function gsmi_get_next_variable`, `function gsmi_set_variable`.
- Atlas domain: Driver Families / drivers/firmware.
- 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.