include/linux/psp-platform-access.h
Source file repositories/reference/linux-study-clean/include/linux/psp-platform-access.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/psp-platform-access.h- Extension
.h- Size
- 1952 bytes
- Lines
- 73
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/psp.h
Detected Declarations
struct psp_req_buffer_hdrstruct psp_requestenum psp_platform_access_msg
Annotated Snippet
struct psp_req_buffer_hdr {
u32 payload_size;
u32 status;
} __packed;
struct psp_request {
struct psp_req_buffer_hdr header;
void *buf;
} __packed;
/**
* psp_send_platform_access_msg() - Send a message to control platform features
*
* This function is intended to be used by drivers outside of ccp to communicate
* with the platform.
*
* Returns:
* 0: success
* -%EBUSY: mailbox in recovery or in use
* -%ENODEV: driver not bound with PSP device
* -%ETIMEDOUT: request timed out
* -%EIO: unknown error (see kernel log)
*/
int psp_send_platform_access_msg(enum psp_platform_access_msg, struct psp_request *req);
/**
* psp_ring_platform_doorbell() - Ring platform doorbell
*
* This function is intended to be used by drivers outside of ccp to ring the
* platform doorbell with a message.
*
* Returns:
* 0: success
* -%EBUSY: mailbox in recovery or in use
* -%ENODEV: driver not bound with PSP device
* -%ETIMEDOUT: request timed out
* -%EIO: error will be stored in result argument
*/
int psp_ring_platform_doorbell(int msg, u32 *result);
/**
* psp_check_platform_access_status() - Checks whether platform features is ready
*
* This function is intended to be used by drivers outside of ccp to determine
* if platform features has initialized.
*
* Returns:
* 0 platform features is ready
* -%ENODEV platform features is not ready or present
*/
int psp_check_platform_access_status(void);
#endif /* __PSP_PLATFORM_ACCESS_H */
Annotation
- Immediate include surface: `linux/psp.h`.
- Detected declarations: `struct psp_req_buffer_hdr`, `struct psp_request`, `enum psp_platform_access_msg`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.