drivers/md/dm-verity-verify-sig.h
Source file repositories/reference/linux-study-clean/drivers/md/dm-verity-verify-sig.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/md/dm-verity-verify-sig.h- Extension
.h- Size
- 1854 bytes
- Lines
- 73
- Domain
- Driver Families
- Bucket
- drivers/md
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct dm_verity_sig_optsfunction verity_verify_root_hashfunction verity_verify_is_sig_opt_argfunction verity_verify_sig_parse_opt_argsfunction verity_verify_sig_opts_cleanupfunction dm_verity_verify_sig_exit
Annotated Snippet
struct dm_verity_sig_opts {
unsigned int sig_size;
u8 *sig;
};
#ifdef CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG
#define DM_VERITY_ROOT_HASH_VERIFICATION_OPTS 2
int verity_verify_root_hash(const void *data, size_t data_len,
const void *sig_data, size_t sig_len);
bool verity_verify_is_sig_opt_arg(const char *arg_name);
int verity_verify_sig_parse_opt_args(struct dm_arg_set *as, struct dm_verity *v,
struct dm_verity_sig_opts *sig_opts,
unsigned int *argc, const char *arg_name);
void verity_verify_sig_opts_cleanup(struct dm_verity_sig_opts *sig_opts);
int __init dm_verity_verify_sig_init(void);
void dm_verity_verify_sig_exit(void);
#else
#define DM_VERITY_ROOT_HASH_VERIFICATION_OPTS 0
static inline int verity_verify_root_hash(const void *data, size_t data_len,
const void *sig_data, size_t sig_len)
{
return 0;
}
static inline bool verity_verify_is_sig_opt_arg(const char *arg_name)
{
return false;
}
static inline int verity_verify_sig_parse_opt_args(struct dm_arg_set *as,
struct dm_verity *v, struct dm_verity_sig_opts *sig_opts,
unsigned int *argc, const char *arg_name)
{
return -EINVAL;
}
static inline void verity_verify_sig_opts_cleanup(struct dm_verity_sig_opts *sig_opts)
{
}
static inline int dm_verity_verify_sig_init(void)
{
return 0;
}
static inline void dm_verity_verify_sig_exit(void)
{
}
#endif /* CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG */
#endif /* DM_VERITY_SIG_VERIFICATION_H */
Annotation
- Detected declarations: `struct dm_verity_sig_opts`, `function verity_verify_root_hash`, `function verity_verify_is_sig_opt_arg`, `function verity_verify_sig_parse_opt_args`, `function verity_verify_sig_opts_cleanup`, `function dm_verity_verify_sig_exit`.
- Atlas domain: Driver Families / drivers/md.
- 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.