drivers/input/mouse/lifebook.c
Source file repositories/reference/linux-study-clean/drivers/input/mouse/lifebook.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/input/mouse/lifebook.c- Extension
.c- Size
- 8053 bytes
- Lines
- 354
- Domain
- Driver Families
- Bucket
- drivers/input
- 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.
- 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/input.hlinux/serio.hlinux/libps2.hlinux/dmi.hlinux/slab.hlinux/types.hpsmouse.hlifebook.h
Detected Declarations
struct lifebook_datafunction lifebook_limit_serio3function lifebook_set_6byte_protofunction lifebook_module_initfunction lifebook_process_bytefunction lifebook_absolute_modefunction lifebook_relative_modefunction lifebook_set_resolutionfunction lifebook_disconnectfunction lifebook_detectfunction lifebook_create_relative_devicefunction lifebook_init
Annotated Snippet
struct lifebook_data {
struct input_dev *dev2; /* Relative device */
char phys[32];
};
static bool lifebook_present;
static const char *desired_serio_phys;
static int lifebook_limit_serio3(const struct dmi_system_id *d)
{
desired_serio_phys = "isa0060/serio3";
return 1;
}
static bool lifebook_use_6byte_proto;
static int lifebook_set_6byte_proto(const struct dmi_system_id *d)
{
lifebook_use_6byte_proto = true;
return 1;
}
static const struct dmi_system_id lifebook_dmi_table[] __initconst = {
{
/* FLORA-ie 55mi */
.matches = {
DMI_MATCH(DMI_PRODUCT_NAME, "FLORA-ie 55mi"),
},
},
{
/* LifeBook B */
.matches = {
DMI_MATCH(DMI_PRODUCT_NAME, "Lifebook B Series"),
},
},
{
/* LifeBook B */
.matches = {
DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook B Series"),
},
},
{
/* Lifebook B */
.matches = {
DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK B Series"),
},
},
{
/* Lifebook B-2130 */
.matches = {
DMI_MATCH(DMI_BOARD_NAME, "ZEPHYR"),
},
},
{
/* Lifebook B213x/B2150 */
.matches = {
DMI_MATCH(DMI_PRODUCT_NAME, "LifeBook B2131/B2133/B2150"),
},
},
{
/* Zephyr */
.matches = {
DMI_MATCH(DMI_PRODUCT_NAME, "ZEPHYR"),
},
},
{
/* Panasonic CF-18 */
.matches = {
DMI_MATCH(DMI_PRODUCT_NAME, "CF-18"),
},
.callback = lifebook_limit_serio3,
},
{
/* Panasonic CF-28 */
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"),
DMI_MATCH(DMI_PRODUCT_NAME, "CF-28"),
},
.callback = lifebook_set_6byte_proto,
},
{
/* Panasonic CF-29 */
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Matsushita"),
DMI_MATCH(DMI_PRODUCT_NAME, "CF-29"),
},
.callback = lifebook_set_6byte_proto,
},
{
Annotation
- Immediate include surface: `linux/input.h`, `linux/serio.h`, `linux/libps2.h`, `linux/dmi.h`, `linux/slab.h`, `linux/types.h`, `psmouse.h`, `lifebook.h`.
- Detected declarations: `struct lifebook_data`, `function lifebook_limit_serio3`, `function lifebook_set_6byte_proto`, `function lifebook_module_init`, `function lifebook_process_byte`, `function lifebook_absolute_mode`, `function lifebook_relative_mode`, `function lifebook_set_resolution`, `function lifebook_disconnect`, `function lifebook_detect`.
- Atlas domain: Driver Families / drivers/input.
- Implementation status: integration implementation candidate.
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.