![]() |
vitasdk
Documentation of the vitasdk
|
Exports for Kernel. More...
Data Structures | |
| struct | SceSblACMgrFsAttrInfo |
| Filesystem-attribute conversion request. More... | |
Enumerations | |
| enum | SceSblACMgrMediaType { SCE_SBL_ACMGR_MEDIA_TYPE_UX_USER = 0 , SCE_SBL_ACMGR_MEDIA_TYPE_SD = 1 , SCE_SBL_ACMGR_MEDIA_TYPE_OS = 2 , SCE_SBL_ACMGR_MEDIA_TYPE_VS = 3 , SCE_SBL_ACMGR_MEDIA_TYPE_VD = 4 , SCE_SBL_ACMGR_MEDIA_TYPE_TM = 5 , SCE_SBL_ACMGR_MEDIA_TYPE_UR = 6 , SCE_SBL_ACMGR_MEDIA_TYPE_HOST = 7 , SCE_SBL_ACMGR_MEDIA_TYPE_UD = 11 , SCE_SBL_ACMGR_MEDIA_TYPE_UX = 12 , SCE_SBL_ACMGR_MEDIA_TYPE_GRO_APP = 13 , SCE_SBL_ACMGR_MEDIA_TYPE_GRW_PATCH = 14 , SCE_SBL_ACMGR_MEDIA_TYPE_SA = 15 , SCE_SBL_ACMGR_MEDIA_TYPE_MFA = 16 , SCE_SBL_ACMGR_MEDIA_TYPE_MFB = 17 , SCE_SBL_ACMGR_MEDIA_TYPE_LMA = 18 , SCE_SBL_ACMGR_MEDIA_TYPE_LMB = 19 , SCE_SBL_ACMGR_MEDIA_TYPE_LMC = 20 , SCE_SBL_ACMGR_MEDIA_TYPE_LMD = 21 , SCE_SBL_ACMGR_MEDIA_TYPE_PD = 22 , SCE_SBL_ACMGR_MEDIA_TYPE_UX_APP = 23 , SCE_SBL_ACMGR_MEDIA_TYPE_UX_PATCH = 24 , SCE_SBL_ACMGR_MEDIA_TYPE_UX_DATA = 25 , SCE_SBL_ACMGR_MEDIA_TYPE_UMA = 27 } |
| Media types produced by the FW 3.60 path classifier. More... | |
Functions | |
| int | ksceSblACMgrIsRootProgram (SceUID pid) |
| Get process type state. | |
| int | ksceSblACMgrIsSystemProgram (SceUID pid) |
| Get process type state. | |
| int | ksceSblACMgrIsGameProgram (SceUID pid) |
| Get process type state. | |
| int | ksceSblACMgrIsNonGameProgram (SceUID pid) |
| Get process type state. | |
| int | ksceSblACMgrIsPspEmu (SceUID pid) |
| Get process type state. | |
| int | ksceSblACMgrIsSceShell (SceUID pid) |
| Get process type state. | |
| int | ksceSblACMgrIsFself (SceUID pid) |
| Get process type state. | |
| int | ksceSblACMgrGetProcessProgramAuthId (SceUID pid, SceUInt64 *authid) |
| Get process authority id. | |
| int | ksceSblACMgrGetMediaType (const char *path, SceUInt32 *media_type) |
| Get media type for input path. | |
| int | ksceSblACMgrIsDevelopmentMode (void) |
| Get development mode state. | |
| VITASDK_BUILD_ASSERT_EQ (0xC, SceSblACMgrFsAttrInfo) | |
| int | ksceSblACMgrConvertModeToFsAttribute (SceUID pid, SceSblACMgrFsAttrInfo *info, int mode) |
| Convert a file mode to an access-controlled filesystem attribute. | |
| int | ksceSblACMgrConvertModeToFsAttribute2 (SceUID pid, SceSblACMgrFsAttrInfo *info, int mode) |
| int | ksceSblACMgrIsSystemProgram2 (SceUID pid) |
| Check capability bit 1 (system-program privilege). | |
| int | ksceSblACMgrGetMediaType2 (const char *path, SceUInt32 *media_type) |
| Get the media type selected by a path's device and path-class prefix. | |
| int | ksceSblACMgrGetPaid2 (SceUID pid, SceUInt64 *paid) |
| Get the program authority ID from the process self-authentication information. | |
| int | ksceSblACMgrHasCapability (SceUID pid, int capability_bit) |
| Test a process capability bit. | |
| int | ksceSblACMgrHasCapability2 (SceUID pid, int capability_bit) |
| SceBool | ksceSblACMgrIsAllowLoopBackMount (SceUID pid) |
| Return whether a process may create a loopback mount. | |
| SceBool | ksceSblACMgrIsAllowLoopBackMount2 (SceUID pid) |
| int | ksceSblACMgrIsAllowUsbSerial (SceUID pid) |
| Return whether a process may use the USB serial interface. | |
| int | ksceSblACMgrIsAllowUsbSerial2 (SceUID pid) |
| int | ksceSblACMgrIsAllowVirtualMachine (SceUID pid) |
| Return whether a process may use the virtual-machine facility. | |
| int | ksceSblACMgrIsAllowVirtualMachine2 (SceUID pid) |
| int | ksceSblACMgrIsDevelopmentMode2 (void) |
| Return whether development DIP switch 159 is enabled. | |
| int | ksceSblACMgrIsFself2 (SceUID pid) |
| Return whether the PAID belongs to the 0x2F0 fSELF family. | |
| int | ksceSblACMgrIsGameProgram2 (SceUID pid) |
| Return whether the PAID belongs to the 0x210 game family or is the fSELF game PAID 0x2F00000000000001. | |
| SceBool | ksceSblACMgrIsAllowUdcd (SceUID pid) |
| Return whether a process may use the USB device controller. | |
| SceBool | ksceSblACMgrIsAllowUdcd2 (SceUID pid) |
| int | ksceSblACMgrIsNonGameOrGameProgram (SceUID pid) |
| Return whether capability bit 2 or capability bit 3 is present. | |
| int | ksceSblACMgrIsNonGameOrGameProgram2 (SceUID pid) |
| int | ksceSblACMgrIsNonGameProgram2 (SceUID pid) |
| Return whether capability bit 3 is present. | |
| SceBool | ksceSblACMgrIsAllowMsMount (SceUID pid) |
| Return whether a process may create a memory-stick work-directory mount. | |
| SceBool | ksceSblACMgrIsAllowMsMount2 (SceUID pid) |
| int | ksceSblACMgrIsPSMProgram (SceUID pid) |
| Return whether a process belongs to the PlayStation Mobile program family. | |
| int | ksceSblACMgrIsPSMProgram2 (SceUID pid) |
| int | ksceSblACMgrIsPSMDevAssistantApp (SceUID pid) |
| Return whether the PAID is in the PSM development-assistant range 0x210000101CD20007-0x210000101CD20009. | |
| int | ksceSblACMgrIsPSMDevAssistantApp2 (SceUID pid) |
| int | ksceSblACMgrIsPSMRuntime (SceUID pid) |
| Return whether the PAID is 0x210000101CD2000A or 0x2800C0101CD2000B, the two FW 3.60 PSM runtime identities. | |
| int | ksceSblACMgrIsPSMRuntime2 (SceUID pid) |
| int | ksceSblACMgrIsPspEmu2 (SceUID pid) |
| Return whether the PAID is 0x2800000000007009 or 0x2800000000000013. | |
| int | ksceSblACMgrIsKernelProgram2 (SceUID pid) |
| Return whether capability bit 0 is present. | |
| int | ksceSblACMgrIsSceShell2 (SceUID pid) |
| Return whether the PAID is the SceShell PAID 0x2800000000000001. | |
| int | ksceSblACMgrIsUpdaterProgram (SceUID pid) |
| Return whether the PAID is in the updater-program range 0x2800800000000000-0x280080000000000F. | |
| int | ksceSblACMgrIsUpdaterProgram2 (SceUID pid) |
| int | ksceSblACMgrIsWebCoreOrWebKitProcess (SceUID pid) |
| Return whether the PAID is 0x2800000000008003 or 0x2800000000008005, the WebCore/WebKit process identities on FW 3.60. | |
| int | ksceSblACMgrIsWebCoreOrWebKitProcess2 (SceUID pid) |
Variables | |
| int | SceSblACMgrFsAttrInfo::operation |
| Values 1-5 select ordinary filesystem attributes; 6 selects a PFS attribute; 7-8 are unsupported by the mode-conversion functions. | |
| void * | SceSblACMgrFsAttrInfo::attribute |
| Caller-owned pointer to a SceUInt8 or SceUInt16 value, selected by SceSblACMgrFsAttrInfo::attribute_size. | |
| SceSize | SceSblACMgrFsAttrInfo::attribute_size |
| Attribute size in bytes. Use 1 or 2; other values can make FW 3.60 return success without writing anything. | |
Exports for Kernel.
Include the header file in your project:
Link the library to the executable:
Unless documented otherwise, a process ID of zero selects the current process on FW 3.60.
| struct SceSblACMgrFsAttrInfo |
Filesystem-attribute conversion request.
| Data Fields | ||
|---|---|---|
| int | operation | Values 1-5 select ordinary filesystem attributes; 6 selects a PFS attribute; 7-8 are unsupported by the mode-conversion functions. |
| void * | attribute | Caller-owned pointer to a SceUInt8 or SceUInt16 value, selected by SceSblACMgrFsAttrInfo::attribute_size. |
| SceSize | attribute_size | Attribute size in bytes. Use 1 or 2; other values can make FW 3.60 return success without writing anything. |
| #define ksceSblACMgrIsSystem | ( | pid | ) | ksceSblACMgrIsRootProgram(pid) |
| #define ksceSblACMgrIsShell | ( | pid | ) | ksceSblACMgrIsSystemProgram(pid) |
| #define kscePfsACSetFSAttrByMode ksceSblACMgrConvertModeToFsAttribute2 |
| #define ksceSblACIsSystemProgram ksceSblACMgrIsSystemProgram2 |
| #define ksceSblACMgrSetFSAttributeByMode ksceSblACMgrConvertModeToFsAttribute |
| #define ksceSblACMgrSetFSAttributeByMode2 ksceSblACMgrConvertModeToFsAttribute2 |
| #define ksceSblACMgrGetProcessProgramAuthId2 ksceSblACMgrGetPaid2 |
| #define ksceSblACMgrIsAllowedExtendedMemory ksceSblACMgrIsAllowLoopBackMount |
| #define ksceSblACMgrIsAllowedExtendedMemory2 ksceSblACMgrIsAllowLoopBackMount2 |
| #define ksceSblACMgrIsAllowedUsbSerial ksceSblACMgrIsAllowUsbSerial |
| #define ksceSblACMgrIsAllowedVirtualMachine ksceSblACMgrIsAllowVirtualMachine |
| #define ksceSblACMgrIsAllowedVirtualMachine2 ksceSblACMgrIsAllowVirtualMachine2 |
| #define ksceSblACMgrIsMiniSettingsForQA ksceSblACMgrIsAllowUdcd |
| #define ksceSblACMgrIsMiniSettingsForQA2 ksceSblACMgrIsAllowUdcd2 |
| #define ksceSblACMgrIsNotSandboxed ksceSblACMgrIsAllowMsMount |
| #define ksceSblACMgrIsNotSandboxed2 ksceSblACMgrIsAllowMsMount2 |
| #define ksceSblACMgrIsPSMDevAssistant ksceSblACMgrIsPSMProgram |
| #define ksceSblACMgrIsPSMDevAssistant2 ksceSblACMgrIsPSMProgram2 |
| #define ksceSblACMgrIsUpdaterUISetupperOrPkgInstallerSpawn ksceSblACMgrIsUpdaterProgram |
| #define ksceSblACMgrIsUpdaterUISetupperOrPkgInstallerSpawn2 ksceSblACMgrIsUpdaterProgram2 |
| #define ksceSblACMgrIsRootProgram2 ksceSblACMgrIsKernelProgram2 |
| #define ksceSblACMgrIsSIEApp ksceSblACMgrIsPSMDevAssistantApp |
| #define ksceSblACMgrIsSIEApp2 ksceSblACMgrIsPSMDevAssistantApp2 |
| enum SceSblACMgrMediaType |
Media types produced by the FW 3.60 path classifier.
In the path patterns below, [n] means zero or more decimal unit digits. For example, both os: and the normal os0: form are accepted. The path table does not produce media types 8, 9, 10, or 26.
| int ksceSblACMgrIsRootProgram | ( | SceUID | pid | ) |
Get process type state.
| [in] | pid | - The target process id |
| int ksceSblACMgrIsSystemProgram | ( | SceUID | pid | ) |
Get process type state.
| [in] | pid | - The target process id |
| int ksceSblACMgrIsGameProgram | ( | SceUID | pid | ) |
Get process type state.
| [in] | pid | - The target process id |
| int ksceSblACMgrIsNonGameProgram | ( | SceUID | pid | ) |
Get process type state.
| [in] | pid | - The target process id |
| int ksceSblACMgrIsPspEmu | ( | SceUID | pid | ) |
Get process type state.
| [in] | pid | - The target process id |
| int ksceSblACMgrIsSceShell | ( | SceUID | pid | ) |
Get process type state.
| [in] | pid | - The target process id |
| int ksceSblACMgrIsFself | ( | SceUID | pid | ) |
Get process type state.
| [in] | pid | - The target process id |
Get process authority id.
| [in] | pid | - The target process id |
| [out] | authid | - The authid output pointer |
| int ksceSblACMgrGetMediaType | ( | const char * | path, |
| SceUInt32 * | media_type | ||
| ) |
Get media type for input path.
FW 3.60 matches a recognized prefix, skips any following decimal device number, and then matches the path-class suffix when one is required. The comparison is case-sensitive and does not inspect characters after the matched suffix.
| [in] | path | - NUL-terminated path to classify. |
| [out] | media_type | - Receives one of SceSblACMgrMediaType. |
| int ksceSblACMgrIsDevelopmentMode | ( | void | ) |
Get development mode state.
| VITASDK_BUILD_ASSERT_EQ | ( | 0xC | , |
| SceSblACMgrFsAttrInfo | |||
| ) |
| int ksceSblACMgrConvertModeToFsAttribute | ( | SceUID | pid, |
| SceSblACMgrFsAttrInfo * | info, | ||
| int | mode | ||
| ) |
Convert a file mode to an access-controlled filesystem attribute.
Operations 1-5 replace the low three bits of the existing output value. For operations 1-5, mode 0x01000000 writes the value 0xF directly. Other modes are mapped according to the calling thread's access level; privileged attribute bit 2 is rejected outside access levels 0x40/0x80.
Operation 6 writes a PFS attribute. It selects the restricted mapping for target processes whose first capability word is 0x10 or 0x20, and the privileged mapping for 0x40 or 0x80. Modes 0x00100000 and 0x00200000 are accepted only by the privileged mapping and produce PFS attribute bits 0x4000 and 0x2000 respectively. Use a two-byte value to preserve those high PFS bits. Operations 7 and 8 return 0x800F0925.
| [in] | pid | - Target process ID (ScePID). |
| [in,out] | info | - Attribute operation and output buffer. |
| [in] | mode | - File mode (SceMode). |
| int ksceSblACMgrConvertModeToFsAttribute2 | ( | SceUID | pid, |
| SceSblACMgrFsAttrInfo * | info, | ||
| int | mode | ||
| ) |
| int ksceSblACMgrIsSystemProgram2 | ( | SceUID | pid | ) |
Check capability bit 1 (system-program privilege).
| [in] | pid | - Target process ID (ScePID). |
| int ksceSblACMgrGetMediaType2 | ( | const char * | path, |
| SceUInt32 * | media_type | ||
| ) |
Get the media type selected by a path's device and path-class prefix.
| [in] | path | - NUL-terminated path to classify. |
| [out] | media_type | - Receives one of SceSblACMgrMediaType. |
Get the program authority ID from the process self-authentication information.
| [in] | pid | - Target process ID (ScePID). |
| [out] | paid | - Program authority ID. |
| int ksceSblACMgrHasCapability | ( | SceUID | pid, |
| int | capability_bit | ||
| ) |
Test a process capability bit.
Capability bits are numbered from 0 to 255 and stored most-significant bit first within each byte. FW 3.60 does not bounds-check capability_bit; callers must keep it in this range.
Known values used by FW 3.60 include 0 (kernel program), 1 (system program), 2 (game program), 3 (non-game program), 128 (Marlin), 129 (MagicGate), 130 (UDCD/loopback mount), 131 (USB serial), 132 (virtual machine), 133 (force-open message pipe), 134 (PlayReady system data), and 135 (system data).
| [in] | pid | - Target process ID (ScePID). |
| [in] | capability_bit | - Capability bit number. |
| int ksceSblACMgrHasCapability2 | ( | SceUID | pid, |
| int | capability_bit | ||
| ) |
Return whether a process may create a loopback mount.
FW 3.60 grants this to capability bit 130 or to PAID 0x220000101CC73883, 0x2800000000000010, 0x280000000000001E, or 0x2800000000000031.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsAllowUsbSerial | ( | SceUID | pid | ) |
Return whether a process may use the USB serial interface.
FW 3.60 grants access to capability bit 1, capability bit 131, and fSELF processes when Utoken flag bit 1 is enabled.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsAllowUsbSerial2 | ( | SceUID | pid | ) |
| int ksceSblACMgrIsAllowVirtualMachine | ( | SceUID | pid | ) |
Return whether a process may use the virtual-machine facility.
FW 3.60 grants access to capability bit 132 and to fSELF processes when Utoken flag bit 1 is enabled.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsAllowVirtualMachine2 | ( | SceUID | pid | ) |
| int ksceSblACMgrIsDevelopmentMode2 | ( | void | ) |
Return whether development DIP switch 159 is enabled.
| int ksceSblACMgrIsFself2 | ( | SceUID | pid | ) |
Return whether the PAID belongs to the 0x2F0 fSELF family.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsGameProgram2 | ( | SceUID | pid | ) |
Return whether the PAID belongs to the 0x210 game family or is the fSELF game PAID 0x2F00000000000001.
| [in] | pid | - Target process ID. |
Return whether a process may use the USB device controller.
FW 3.60 grants this to capability bit 130, PAID 0x220000101CC73883, and PAID 0x2800000000000010.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsNonGameOrGameProgram | ( | SceUID | pid | ) |
Return whether capability bit 2 or capability bit 3 is present.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsNonGameOrGameProgram2 | ( | SceUID | pid | ) |
| int ksceSblACMgrIsNonGameProgram2 | ( | SceUID | pid | ) |
Return whether capability bit 3 is present.
| [in] | pid | - Target process ID. |
Return whether a process may create a memory-stick work-directory mount.
FW 3.60 grants this only to PAID 0x2800000000000001, 0x2800000000000010, 0x2800000000000013, 0x2800000000000022, 0x280000000000002D, 0x280000000000002E, 0x2800000000000039, or 0x2800000000007009.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsPSMProgram | ( | SceUID | pid | ) |
Return whether a process belongs to the PlayStation Mobile program family.
On FW 3.60 this includes PSM-family PAIDs 0x210000101CD20007-0x210000101CD2000A, runtime PAID 0x2800C0101CD2000B, and fSELF processes when Utoken flag bit 1 is enabled.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsPSMProgram2 | ( | SceUID | pid | ) |
| int ksceSblACMgrIsPSMDevAssistantApp | ( | SceUID | pid | ) |
Return whether the PAID is in the PSM development-assistant range 0x210000101CD20007-0x210000101CD20009.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsPSMDevAssistantApp2 | ( | SceUID | pid | ) |
| int ksceSblACMgrIsPSMRuntime | ( | SceUID | pid | ) |
Return whether the PAID is 0x210000101CD2000A or 0x2800C0101CD2000B, the two FW 3.60 PSM runtime identities.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsPSMRuntime2 | ( | SceUID | pid | ) |
| int ksceSblACMgrIsPspEmu2 | ( | SceUID | pid | ) |
Return whether the PAID is 0x2800000000007009 or 0x2800000000000013.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsKernelProgram2 | ( | SceUID | pid | ) |
Return whether capability bit 0 is present.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsSceShell2 | ( | SceUID | pid | ) |
Return whether the PAID is the SceShell PAID 0x2800000000000001.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsUpdaterProgram | ( | SceUID | pid | ) |
Return whether the PAID is in the updater-program range 0x2800800000000000-0x280080000000000F.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsUpdaterProgram2 | ( | SceUID | pid | ) |
| int ksceSblACMgrIsWebCoreOrWebKitProcess | ( | SceUID | pid | ) |
Return whether the PAID is 0x2800000000008003 or 0x2800000000008005, the WebCore/WebKit process identities on FW 3.60.
| [in] | pid | - Target process ID. |
| int ksceSblACMgrIsWebCoreOrWebKitProcess2 | ( | SceUID | pid | ) |
| int SceSblACMgrFsAttrInfo::operation |
Values 1-5 select ordinary filesystem attributes; 6 selects a PFS attribute; 7-8 are unsupported by the mode-conversion functions.
| void* SceSblACMgrFsAttrInfo::attribute |
Caller-owned pointer to a SceUInt8 or SceUInt16 value, selected by SceSblACMgrFsAttrInfo::attribute_size.
| SceSize SceSblACMgrFsAttrInfo::attribute_size |
Attribute size in bytes. Use 1 or 2; other values can make FW 3.60 return success without writing anything.