arch/s390/pci/pci_clp.c
Source file repositories/reference/linux-study-clean/arch/s390/pci/pci_clp.c
File Facts
- System
- Linux kernel
- Corpus path
arch/s390/pci/pci_clp.c- Extension
.c- Size
- 16003 bytes
- Lines
- 679
- Domain
- Architecture Layer
- Bucket
- arch/s390
- Inferred role
- Architecture Layer: operation-table or driver-model contract
- Status
- pattern implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/miscdevice.hlinux/slab.hlinux/err.hlinux/delay.hlinux/pci.hlinux/uaccess.hasm/asm-extable.hasm/pci_debug.hasm/pci_clp.hasm/asm.hasm/clp.huapi/asm/clp.hpci_bus.h
Detected Declarations
function update_uid_checkingfunction zpci_err_clpfunction clp_get_ilpfunction clp_reqfunction clp_free_blockfunction clp_store_query_pci_fngrpfunction clp_query_pci_fngrpfunction clp_store_query_pci_fnfunction clp_query_pci_fnfunction clp_set_pci_fnfunction clp_setup_writeback_miofunction clp_enable_fhfunction clp_disable_fhfunction clp_list_pci_reqfunction clp_list_pcifunction clp_find_pcifunction __clp_addfunction clp_scan_pci_devicesfunction clp_refresh_fhfunction clp_get_statefunction clp_base_slpcfunction clp_base_commandfunction clp_pci_slpcfunction clp_pci_listfunction clp_pci_queryfunction clp_pci_query_grpfunction clp_pci_commandfunction clp_normal_commandfunction clp_immediate_commandfunction clp_misc_ioctlfunction clp_misc_release
Annotated Snippet
static const struct file_operations clp_misc_fops = {
.owner = THIS_MODULE,
.open = nonseekable_open,
.release = clp_misc_release,
.unlocked_ioctl = clp_misc_ioctl,
};
static struct miscdevice clp_misc_device = {
.minor = MISC_DYNAMIC_MINOR,
.name = "clp",
.fops = &clp_misc_fops,
};
builtin_misc_device(clp_misc_device);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/miscdevice.h`, `linux/slab.h`, `linux/err.h`, `linux/delay.h`, `linux/pci.h`, `linux/uaccess.h`, `asm/asm-extable.h`.
- Detected declarations: `function update_uid_checking`, `function zpci_err_clp`, `function clp_get_ilp`, `function clp_req`, `function clp_free_block`, `function clp_store_query_pci_fngrp`, `function clp_query_pci_fngrp`, `function clp_store_query_pci_fn`, `function clp_query_pci_fn`, `function clp_set_pci_fn`.
- Atlas domain: Architecture Layer / arch/s390.
- Implementation status: pattern implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
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.