vitasdk
Documentation of the vitasdk
acmgr.h
Go to the documentation of this file.
1
9#ifndef _PSP2KERN_SBLACMGR_H_
10#define _PSP2KERN_SBLACMGR_H_
11
12#include <psp2kern/types.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
26
27#define ksceSblACMgrIsSystem(pid) ksceSblACMgrIsRootProgram(pid)
28
37
38#define ksceSblACMgrIsShell(pid) ksceSblACMgrIsSystemProgram(pid)
39
48
57
66
75
84
95
111int ksceSblACMgrGetMediaType(const char *path, SceUInt32 *media_type);
112
119
153
163VITASDK_BUILD_ASSERT_EQ(0xC, SceSblACMgrFsAttrInfo); // size is from FW 3.60
164
193
202
213int ksceSblACMgrGetMediaType2(const char *path, SceUInt32 *media_type);
214
225
245int ksceSblACMgrHasCapability(SceUID pid, int capability_bit);
246int ksceSblACMgrHasCapability2(SceUID pid, int capability_bit);
247
262
276
290
297
307
318
332
343
353
369
384
396
408
418
428
438
450
462
463/* Compatibility names used by previous VitaSDK headers. */
464#define kscePfsACSetFSAttrByMode ksceSblACMgrConvertModeToFsAttribute2
465#define ksceSblACIsSystemProgram ksceSblACMgrIsSystemProgram2
466#define ksceSblACMgrSetFSAttributeByMode ksceSblACMgrConvertModeToFsAttribute
467#define ksceSblACMgrSetFSAttributeByMode2 ksceSblACMgrConvertModeToFsAttribute2
468#define ksceSblACMgrGetProcessProgramAuthId2 ksceSblACMgrGetPaid2
469#define ksceSblACMgrIsAllowedExtendedMemory ksceSblACMgrIsAllowLoopBackMount
470#define ksceSblACMgrIsAllowedExtendedMemory2 ksceSblACMgrIsAllowLoopBackMount2
471#define ksceSblACMgrIsAllowedUsbSerial ksceSblACMgrIsAllowUsbSerial
472#define ksceSblACMgrIsAllowedVirtualMachine ksceSblACMgrIsAllowVirtualMachine
473#define ksceSblACMgrIsAllowedVirtualMachine2 ksceSblACMgrIsAllowVirtualMachine2
474#define ksceSblACMgrIsMiniSettingsForQA ksceSblACMgrIsAllowUdcd
475#define ksceSblACMgrIsMiniSettingsForQA2 ksceSblACMgrIsAllowUdcd2
476#define ksceSblACMgrIsNotSandboxed ksceSblACMgrIsAllowMsMount
477#define ksceSblACMgrIsNotSandboxed2 ksceSblACMgrIsAllowMsMount2
478#define ksceSblACMgrIsPSMDevAssistant ksceSblACMgrIsPSMProgram
479#define ksceSblACMgrIsPSMDevAssistant2 ksceSblACMgrIsPSMProgram2
480#define ksceSblACMgrIsUpdaterUISetupperOrPkgInstallerSpawn ksceSblACMgrIsUpdaterProgram
481#define ksceSblACMgrIsUpdaterUISetupperOrPkgInstallerSpawn2 ksceSblACMgrIsUpdaterProgram2
482#define ksceSblACMgrIsRootProgram2 ksceSblACMgrIsKernelProgram2
483#define ksceSblACMgrIsSIEApp ksceSblACMgrIsPSMDevAssistantApp
484#define ksceSblACMgrIsSIEApp2 ksceSblACMgrIsPSMDevAssistantApp2
485
486#ifdef __cplusplus
487}
488#endif
489
490#endif /* _PSP2KERN_SBLACMGR_H_ */
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
SceUID pid
Definition debug.h:1
int ksceSblACMgrGetMediaType(const char *path, SceUInt32 *media_type)
Get media type for input path.
int ksceSblACMgrIsKernelProgram2(SceUID pid)
Return whether capability bit 0 is present.
int ksceSblACMgrIsSystemProgram2(SceUID pid)
Check capability bit 1 (system-program privilege).
SceBool ksceSblACMgrIsAllowLoopBackMount(SceUID pid)
Return whether a process may create a loopback mount.
int ksceSblACMgrIsAllowVirtualMachine2(SceUID pid)
SceBool ksceSblACMgrIsAllowUdcd(SceUID pid)
Return whether a process may use the USB device controller.
int ksceSblACMgrIsUpdaterProgram(SceUID pid)
Return whether the PAID is in the updater-program range 0x2800800000000000-0x280080000000000F.
int ksceSblACMgrIsPSMDevAssistantApp(SceUID pid)
Return whether the PAID is in the PSM development-assistant range 0x210000101CD20007-0x210000101CD200...
int ksceSblACMgrIsPSMDevAssistantApp2(SceUID pid)
void * attribute
Caller-owned pointer to a SceUInt8 or SceUInt16 value, selected by SceSblACMgrFsAttrInfo::attribute_s...
Definition acmgr.h:158
int ksceSblACMgrIsFself2(SceUID pid)
Return whether the PAID belongs to the 0x2F0 fSELF family.
SceSblACMgrMediaType
Media types produced by the FW 3.60 path classifier.
Definition acmgr.h:127
int ksceSblACMgrGetMediaType2(const char *path, SceUInt32 *media_type)
Get the media type selected by a path's device and path-class prefix.
SceSize attribute_size
Attribute size in bytes. Use 1 or 2; other values can make FW 3.60 return success without writing any...
Definition acmgr.h:160
int ksceSblACMgrIsNonGameProgram2(SceUID pid)
Return whether capability bit 3 is present.
int ksceSblACMgrIsPSMProgram2(SceUID pid)
int ksceSblACMgrIsAllowVirtualMachine(SceUID pid)
Return whether a process may use the virtual-machine facility.
int ksceSblACMgrIsSceShell(SceUID pid)
Get process type state.
int ksceSblACMgrIsUpdaterProgram2(SceUID pid)
SceBool ksceSblACMgrIsAllowMsMount2(SceUID pid)
int ksceSblACMgrIsRootProgram(SceUID pid)
Get process type state.
int ksceSblACMgrIsPSMRuntime2(SceUID pid)
int ksceSblACMgrIsPspEmu(SceUID pid)
Get process type state.
int ksceSblACMgrIsNonGameProgram(SceUID pid)
Get process type state.
int ksceSblACMgrConvertModeToFsAttribute(SceUID pid, SceSblACMgrFsAttrInfo *info, int mode)
Convert a file mode to an access-controlled filesystem attribute.
int operation
Values 1-5 select ordinary filesystem attributes; 6 selects a PFS attribute; 7-8 are unsupported by t...
Definition acmgr.h:156
int ksceSblACMgrIsNonGameOrGameProgram2(SceUID pid)
int ksceSblACMgrGetProcessProgramAuthId(SceUID pid, SceUInt64 *authid)
Get process authority id.
int ksceSblACMgrIsWebCoreOrWebKitProcess(SceUID pid)
Return whether the PAID is 0x2800000000008003 or 0x2800000000008005, the WebCore/WebKit process ident...
int ksceSblACMgrIsNonGameOrGameProgram(SceUID pid)
Return whether capability bit 2 or capability bit 3 is present.
int ksceSblACMgrGetPaid2(SceUID pid, SceUInt64 *paid)
Get the program authority ID from the process self-authentication information.
int ksceSblACMgrIsFself(SceUID pid)
Get process type state.
SceBool ksceSblACMgrIsAllowUdcd2(SceUID pid)
int ksceSblACMgrIsDevelopmentMode(void)
Get development mode state.
int ksceSblACMgrIsWebCoreOrWebKitProcess2(SceUID pid)
int ksceSblACMgrIsSystemProgram(SceUID pid)
Get process type state.
int ksceSblACMgrIsAllowUsbSerial2(SceUID pid)
SceBool ksceSblACMgrIsAllowMsMount(SceUID pid)
Return whether a process may create a memory-stick work-directory mount.
int ksceSblACMgrIsGameProgram2(SceUID pid)
Return whether the PAID belongs to the 0x210 game family or is the fSELF game PAID 0x2F00000000000001...
int ksceSblACMgrIsSceShell2(SceUID pid)
Return whether the PAID is the SceShell PAID 0x2800000000000001.
SceBool ksceSblACMgrIsAllowLoopBackMount2(SceUID pid)
int ksceSblACMgrIsPSMRuntime(SceUID pid)
Return whether the PAID is 0x210000101CD2000A or 0x2800C0101CD2000B, the two FW 3....
int ksceSblACMgrIsGameProgram(SceUID pid)
Get process type state.
int ksceSblACMgrIsAllowUsbSerial(SceUID pid)
Return whether a process may use the USB serial interface.
int ksceSblACMgrHasCapability2(SceUID pid, int capability_bit)
int ksceSblACMgrConvertModeToFsAttribute2(SceUID pid, SceSblACMgrFsAttrInfo *info, int mode)
int ksceSblACMgrIsPSMProgram(SceUID pid)
Return whether a process belongs to the PlayStation Mobile program family.
int ksceSblACMgrHasCapability(SceUID pid, int capability_bit)
Test a process capability bit.
int ksceSblACMgrIsPspEmu2(SceUID pid)
Return whether the PAID is 0x2800000000007009 or 0x2800000000000013.
int ksceSblACMgrIsDevelopmentMode2(void)
Return whether development DIP switch 159 is enabled.
@ SCE_SBL_ACMGR_MEDIA_TYPE_SA
sa[n]:.
Definition acmgr.h:140
@ SCE_SBL_ACMGR_MEDIA_TYPE_UD
ud[n]:.
Definition acmgr.h:136
@ SCE_SBL_ACMGR_MEDIA_TYPE_VD
vd[n]:.
Definition acmgr.h:132
@ SCE_SBL_ACMGR_MEDIA_TYPE_TM
tm[n]:.
Definition acmgr.h:133
@ SCE_SBL_ACMGR_MEDIA_TYPE_UMA
uma[n]:.
Definition acmgr.h:151
@ SCE_SBL_ACMGR_MEDIA_TYPE_UR
ur[n]:.
Definition acmgr.h:134
@ SCE_SBL_ACMGR_MEDIA_TYPE_LMC
lmc[n]:.
Definition acmgr.h:145
@ SCE_SBL_ACMGR_MEDIA_TYPE_MFA
mfa[n]:.
Definition acmgr.h:141
@ SCE_SBL_ACMGR_MEDIA_TYPE_LMD
lmd[n]:.
Definition acmgr.h:146
@ SCE_SBL_ACMGR_MEDIA_TYPE_OS
os[n]:.
Definition acmgr.h:130
@ SCE_SBL_ACMGR_MEDIA_TYPE_VS
vs[n]:.
Definition acmgr.h:131
@ SCE_SBL_ACMGR_MEDIA_TYPE_UX
Other paths beginning with ux[n]:.
Definition acmgr.h:137
@ SCE_SBL_ACMGR_MEDIA_TYPE_GRW_PATCH
grw[n]:patch or grw[n]:/patch.
Definition acmgr.h:139
@ SCE_SBL_ACMGR_MEDIA_TYPE_UX_USER
ux[n]:user or ux[n]:/user.
Definition acmgr.h:128
@ SCE_SBL_ACMGR_MEDIA_TYPE_HOST
host[n]:.
Definition acmgr.h:135
@ SCE_SBL_ACMGR_MEDIA_TYPE_LMA
lma[n]:.
Definition acmgr.h:143
@ SCE_SBL_ACMGR_MEDIA_TYPE_UX_DATA
ux[n]:data or ux[n]:/data.
Definition acmgr.h:150
@ SCE_SBL_ACMGR_MEDIA_TYPE_UX_APP
ux[n]:app or ux[n]:/app.
Definition acmgr.h:148
@ SCE_SBL_ACMGR_MEDIA_TYPE_GRO_APP
gro[n]:app or gro[n]:/app.
Definition acmgr.h:138
@ SCE_SBL_ACMGR_MEDIA_TYPE_LMB
lmb[n]:.
Definition acmgr.h:144
@ SCE_SBL_ACMGR_MEDIA_TYPE_PD
pd[n]:.
Definition acmgr.h:147
@ SCE_SBL_ACMGR_MEDIA_TYPE_SD
sd[n]:.
Definition acmgr.h:129
@ SCE_SBL_ACMGR_MEDIA_TYPE_UX_PATCH
ux[n]:patch or ux[n]:/patch.
Definition acmgr.h:149
@ SCE_SBL_ACMGR_MEDIA_TYPE_MFB
mfb[n]:.
Definition acmgr.h:142
Filesystem-attribute conversion request.
Definition acmgr.h:155
int SceBool
Definition types.h:59
unsigned int SceSize
Definition types.h:56
int SceUID
UIDs are used to describe many different kernel objects.
Definition types.h:90
uint64_t SceUInt64
Definition types.h:51
uint32_t SceUInt32
Definition types.h:45