drivers/accessibility/speakup/varhandlers.c
Source file repositories/reference/linux-study-clean/drivers/accessibility/speakup/varhandlers.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/accessibility/speakup/varhandlers.c- Extension
.c- Size
- 8418 bytes
- Lines
- 346
- Domain
- Driver Families
- Bucket
- drivers/accessibility
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/ctype.hspk_types.hspk_priv.hspeakup.h
Detected Declarations
function spk_chartab_get_valuefunction speakup_register_varfunction speakup_unregister_varfunction spk_set_num_varfunction spk_set_string_varfunction spk_set_mask_bitsexport spk_get_var_headerexport spk_get_varexport spk_set_num_var
Annotated Snippet
if (mask < PUNC) {
if (!(spk_chartab[*cp] & PUNC))
break;
} else if (spk_chartab[*cp] & B_NUM) {
break;
}
}
if (*cp)
return -EINVAL;
cp = (u_char *)input;
}
if (how & 2) {
for (; *cp; cp++)
if (*cp > SPACE)
spk_chartab[*cp] |= mask;
} else {
for (; *cp; cp++)
if (*cp > SPACE)
spk_chartab[*cp] &= ~mask;
}
return 0;
}
char *spk_strlwr(char *s)
{
char *p;
if (!s)
return NULL;
for (p = s; *p; p++)
*p = tolower(*p);
return s;
}
char *spk_s2uchar(char *start, char *dest)
{
int val;
/* Do not replace with kstrtoul: here we need start to be updated */
val = simple_strtoul(skip_spaces(start), &start, 10);
if (*start == ',')
start++;
*dest = (u_char)val;
return start;
}
Annotation
- Immediate include surface: `linux/ctype.h`, `spk_types.h`, `spk_priv.h`, `speakup.h`.
- Detected declarations: `function spk_chartab_get_value`, `function speakup_register_var`, `function speakup_unregister_var`, `function spk_set_num_var`, `function spk_set_string_var`, `function spk_set_mask_bits`, `export spk_get_var_header`, `export spk_get_var`, `export spk_set_num_var`.
- Atlas domain: Driver Families / drivers/accessibility.
- 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.