arch/powerpc/include/asm/plpks.h
Source file repositories/reference/linux-study-clean/arch/powerpc/include/asm/plpks.h
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/include/asm/plpks.h- Extension
.h- Size
- 3669 bytes
- Lines
- 136
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- Inferred role
- Architecture Layer: implementation source
- Status
- source 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 or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/list.hlinux/kobject.h
Detected Declarations
struct plpks_varstruct plpks_var_namestruct plpks_var_name_listfunction plpks_is_availablefunction plpks_get_passwordlenfunction plpks_early_init_devtreefunction plpks_config_create_softlink
Annotated Snippet
struct plpks_var {
char *component;
u8 *name;
u8 *data;
u32 policy;
u16 namelen;
u16 datalen;
u8 os;
};
struct plpks_var_name {
u8 *name;
u16 namelen;
};
struct plpks_var_name_list {
u32 varcount;
struct plpks_var_name varlist[];
};
int plpks_signed_update_var(struct plpks_var *var, u64 flags);
int plpks_write_var(struct plpks_var var);
int plpks_remove_var(char *component, u8 varos,
struct plpks_var_name vname);
int plpks_read_os_var(struct plpks_var *var);
int plpks_read_fw_var(struct plpks_var *var);
int plpks_read_bootloader_var(struct plpks_var *var);
bool plpks_is_available(void);
u8 plpks_get_version(void);
u16 plpks_get_objoverhead(void);
u16 plpks_get_maxpwsize(void);
u16 plpks_get_maxobjectsize(void);
u16 plpks_get_maxobjectlabelsize(void);
u32 plpks_get_totalsize(void);
u32 plpks_get_usedspace(void);
u32 plpks_get_supportedpolicies(void);
u32 plpks_get_maxlargeobjectsize(void);
u64 plpks_get_signedupdatealgorithms(void);
u64 plpks_get_wrappingfeatures(void);
u16 plpks_get_passwordlen(void);
void plpks_early_init_devtree(void);
int plpks_populate_fdt(void *fdt);
int plpks_config_create_softlink(struct kobject *from);
bool plpks_wrapping_is_supported(void);
int plpks_gen_wrapping_key(void);
int plpks_wrap_object(u8 **input_buf, u32 input_len, u16 wrap_flags,
u8 **output_buf, u32 *output_len);
int plpks_unwrap_object(u8 **input_buf, u32 input_len,
u8 **output_buf, u32 *output_len);
#else // CONFIG_PSERIES_PLPKS
static inline bool plpks_is_available(void) { return false; }
static inline u16 plpks_get_passwordlen(void) { BUILD_BUG(); }
static inline void plpks_early_init_devtree(void) { }
static inline int plpks_populate_fdt(void *fdt) { BUILD_BUG(); }
static inline int plpks_config_create_softlink(struct kobject *from)
{ return 0; }
#endif // CONFIG_PSERIES_PLPKS
#endif // _ASM_POWERPC_PLPKS_H
Annotation
- Immediate include surface: `linux/types.h`, `linux/list.h`, `linux/kobject.h`.
- Detected declarations: `struct plpks_var`, `struct plpks_var_name`, `struct plpks_var_name_list`, `function plpks_is_available`, `function plpks_get_passwordlen`, `function plpks_early_init_devtree`, `function plpks_config_create_softlink`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.