vitasdk
Documentation of the vitasdk
uid_puid.h
Go to the documentation of this file.
1
6#ifndef _PSP2KERN_KERNEL_SYSMEM_UID_PUID_H_
7#define _PSP2KERN_KERNEL_SYSMEM_UID_PUID_H_
8
9#include <psp2kern/types.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/*
16 * Open Process UID by Global UID (Create PUID)
17 *
18 * param[in] pid - The target process id.
19 * param[in] guid - The target GUID.
20 *
21 * return PUID on success, < 0 on error
22 */
24
25/*
26 * Close Process UID (Remove PUID)
27 *
28 * param[in] pid - The target process id.
29 * param[in] puid - The target PUID.
30 *
31 * return PUID on success, < 0 on error
32 */
34
35/*
36 * Get Global UID by Process UID
37 *
38 * param[in] pid - The target process id.
39 * param[in] puid - The target PUID.
40 *
41 * return GUID on success, < 0 on error
42 */
44
45#define ksceKernelKernelUidForUserUid(pid, puid) kscePUIDtoGUID(pid, puid)
46#define ksceKernelCreateUserUid(pid, guid) kscePUIDOpenByGUID(pid, guid)
47#define ksceKernelDeleteUserUid(pid, puid) kscePUIDClose(pid, puid)
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* _PSP2KERN_KERNEL_SYSMEM_UID_PUID_H_ */
SceUID pid
Definition debug.h:1
SceUID kscePUIDtoGUID(SceUID pid, SceUID puid)
SceUID kscePUIDOpenByGUID(SceUID pid, SceUID guid)
int kscePUIDClose(SceUID pid, SceUID puid)
int SceUID
UIDs are used to describe many different kernel objects.
Definition types.h:90