drivers/auxdisplay/line-display.c
Source file repositories/reference/linux-study-clean/drivers/auxdisplay/line-display.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/auxdisplay/line-display.c- Extension
.c- Size
- 15041 bytes
- Lines
- 597
- Domain
- Driver Families
- Bucket
- drivers/auxdisplay
- 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
generated/utsrelease.hlinux/cleanup.hlinux/device.hlinux/export.hlinux/idr.hlinux/jiffies.hlinux/kstrtox.hlinux/list.hlinux/module.hlinux/slab.hlinux/spinlock.hlinux/string.hlinux/sysfs.hlinux/timer.hlinux/map_to_7segment.hlinux/map_to_14segment.hline-display.h
Detected Declarations
struct linedisp_attachmentfunction create_attachmentfunction list_for_each_entryfunction list_for_each_entryfunction should_scrollfunction linedisp_scrollfunction linedisp_displayfunction message_showfunction message_storefunction num_chars_showfunction scroll_step_ms_showfunction scroll_step_ms_storefunction map_seg_showfunction map_seg_storefunction linedisp_attr_is_visiblefunction linedisp_releasefunction linedisp_init_mapfunction linedisp_detachfunction linedisp_attachfunction linedisp_unregisterfunction linedisp_register
Annotated Snippet
err = device_add(&linedisp->dev);
if (err)
goto out_del_attach;
return 0;
out_del_attach:
delete_attachment(&linedisp->dev, false);
out_del_timer:
timer_delete_sync(&linedisp->timer);
out_put_device:
put_device(&linedisp->dev);
return err;
}
EXPORT_SYMBOL_NS_GPL(linedisp_register, "LINEDISP");
/**
* linedisp_unregister - unregister a character line display
* @linedisp: pointer to character line display structure registered previously
* with linedisp_register()
*/
void linedisp_unregister(struct linedisp *linedisp)
{
device_del(&linedisp->dev);
delete_attachment(&linedisp->dev, false);
timer_delete_sync(&linedisp->timer);
put_device(&linedisp->dev);
}
EXPORT_SYMBOL_NS_GPL(linedisp_unregister, "LINEDISP");
MODULE_DESCRIPTION("Character line display core support");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `generated/utsrelease.h`, `linux/cleanup.h`, `linux/device.h`, `linux/export.h`, `linux/idr.h`, `linux/jiffies.h`, `linux/kstrtox.h`, `linux/list.h`.
- Detected declarations: `struct linedisp_attachment`, `function create_attachment`, `function list_for_each_entry`, `function list_for_each_entry`, `function should_scroll`, `function linedisp_scroll`, `function linedisp_display`, `function message_show`, `function message_store`, `function num_chars_show`.
- Atlas domain: Driver Families / drivers/auxdisplay.
- 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.