drivers/s390/net/ctcm_dbug.c
Source file repositories/reference/linux-study-clean/drivers/s390/net/ctcm_dbug.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/s390/net/ctcm_dbug.c- Extension
.c- Size
- 1922 bytes
- Lines
- 79
- Domain
- Driver Families
- Bucket
- drivers/s390
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/stddef.hlinux/string.hlinux/kernel.hlinux/errno.hlinux/ctype.hlinux/sysctl.hlinux/module.hlinux/init.hlinux/fs.hlinux/debugfs.hctcm_dbug.h
Detected Declarations
function ctcm_unregister_dbf_viewsfunction ctcm_register_dbf_viewsfunction ctcm_dbf_longtext
Annotated Snippet
if (ctcm_dbf[x].id == NULL) {
ctcm_unregister_dbf_views();
return -ENOMEM;
}
/* register a view */
debug_register_view(ctcm_dbf[x].id, &debug_hex_ascii_view);
/* set a passing level */
debug_set_level(ctcm_dbf[x].id, ctcm_dbf[x].level);
}
return 0;
}
void ctcm_dbf_longtext(enum ctcm_dbf_names dbf_nix, int level, char *fmt, ...)
{
char dbf_txt_buf[64];
va_list args;
if (!debug_level_enabled(ctcm_dbf[dbf_nix].id, level))
return;
va_start(args, fmt);
vscnprintf(dbf_txt_buf, sizeof(dbf_txt_buf), fmt, args);
va_end(args);
debug_text_event(ctcm_dbf[dbf_nix].id, level, dbf_txt_buf);
}
Annotation
- Immediate include surface: `linux/stddef.h`, `linux/string.h`, `linux/kernel.h`, `linux/errno.h`, `linux/ctype.h`, `linux/sysctl.h`, `linux/module.h`, `linux/init.h`.
- Detected declarations: `function ctcm_unregister_dbf_views`, `function ctcm_register_dbf_views`, `function ctcm_dbf_longtext`.
- Atlas domain: Driver Families / drivers/s390.
- Implementation status: source 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.