vitasdk
Documentation of the vitasdk

Exports for Kernel. More...

Data Structures

struct  SceSblACMgrFsAttrInfo
 Filesystem-attribute conversion request. More...
 

Macros

#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
 

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.
 

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceSblACMgrForDriver_stub SceSblACMgrForKernel_stub



Unless documented otherwise, a process ID of zero selects the current process on FW 3.60.


Data Structure Documentation

◆ SceSblACMgrFsAttrInfo

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.

Macro Definition Documentation

◆ ksceSblACMgrIsSystem

#define ksceSblACMgrIsSystem (   pid)    ksceSblACMgrIsRootProgram(pid)

◆ ksceSblACMgrIsShell

#define ksceSblACMgrIsShell (   pid)    ksceSblACMgrIsSystemProgram(pid)

◆ kscePfsACSetFSAttrByMode

#define kscePfsACSetFSAttrByMode   ksceSblACMgrConvertModeToFsAttribute2

◆ ksceSblACIsSystemProgram

#define ksceSblACIsSystemProgram   ksceSblACMgrIsSystemProgram2

◆ ksceSblACMgrSetFSAttributeByMode

#define ksceSblACMgrSetFSAttributeByMode   ksceSblACMgrConvertModeToFsAttribute

◆ ksceSblACMgrSetFSAttributeByMode2

#define ksceSblACMgrSetFSAttributeByMode2   ksceSblACMgrConvertModeToFsAttribute2

◆ ksceSblACMgrGetProcessProgramAuthId2

#define ksceSblACMgrGetProcessProgramAuthId2   ksceSblACMgrGetPaid2

◆ ksceSblACMgrIsAllowedExtendedMemory

#define ksceSblACMgrIsAllowedExtendedMemory   ksceSblACMgrIsAllowLoopBackMount

◆ ksceSblACMgrIsAllowedExtendedMemory2

#define ksceSblACMgrIsAllowedExtendedMemory2   ksceSblACMgrIsAllowLoopBackMount2

◆ ksceSblACMgrIsAllowedUsbSerial

#define ksceSblACMgrIsAllowedUsbSerial   ksceSblACMgrIsAllowUsbSerial

◆ ksceSblACMgrIsAllowedVirtualMachine

#define ksceSblACMgrIsAllowedVirtualMachine   ksceSblACMgrIsAllowVirtualMachine

◆ ksceSblACMgrIsAllowedVirtualMachine2

#define ksceSblACMgrIsAllowedVirtualMachine2   ksceSblACMgrIsAllowVirtualMachine2

◆ ksceSblACMgrIsMiniSettingsForQA

#define ksceSblACMgrIsMiniSettingsForQA   ksceSblACMgrIsAllowUdcd

◆ ksceSblACMgrIsMiniSettingsForQA2

#define ksceSblACMgrIsMiniSettingsForQA2   ksceSblACMgrIsAllowUdcd2

◆ ksceSblACMgrIsNotSandboxed

#define ksceSblACMgrIsNotSandboxed   ksceSblACMgrIsAllowMsMount

◆ ksceSblACMgrIsNotSandboxed2

#define ksceSblACMgrIsNotSandboxed2   ksceSblACMgrIsAllowMsMount2

◆ ksceSblACMgrIsPSMDevAssistant

#define ksceSblACMgrIsPSMDevAssistant   ksceSblACMgrIsPSMProgram

◆ ksceSblACMgrIsPSMDevAssistant2

#define ksceSblACMgrIsPSMDevAssistant2   ksceSblACMgrIsPSMProgram2

◆ ksceSblACMgrIsUpdaterUISetupperOrPkgInstallerSpawn

#define ksceSblACMgrIsUpdaterUISetupperOrPkgInstallerSpawn   ksceSblACMgrIsUpdaterProgram

◆ ksceSblACMgrIsUpdaterUISetupperOrPkgInstallerSpawn2

#define ksceSblACMgrIsUpdaterUISetupperOrPkgInstallerSpawn2   ksceSblACMgrIsUpdaterProgram2

◆ ksceSblACMgrIsRootProgram2

#define ksceSblACMgrIsRootProgram2   ksceSblACMgrIsKernelProgram2

◆ ksceSblACMgrIsSIEApp

#define ksceSblACMgrIsSIEApp   ksceSblACMgrIsPSMDevAssistantApp

◆ ksceSblACMgrIsSIEApp2

#define ksceSblACMgrIsSIEApp2   ksceSblACMgrIsPSMDevAssistantApp2

Enumeration Type Documentation

◆ 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.

Enumerator
SCE_SBL_ACMGR_MEDIA_TYPE_UX_USER 

ux[n]:user or ux[n]:/user.

SCE_SBL_ACMGR_MEDIA_TYPE_SD 

sd[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_OS 

os[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_VS 

vs[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_VD 

vd[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_TM 

tm[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_UR 

ur[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_HOST 

host[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_UD 

ud[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_UX 

Other paths beginning with ux[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_GRO_APP 

gro[n]:app or gro[n]:/app.

SCE_SBL_ACMGR_MEDIA_TYPE_GRW_PATCH 

grw[n]:patch or grw[n]:/patch.

SCE_SBL_ACMGR_MEDIA_TYPE_SA 

sa[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_MFA 

mfa[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_MFB 

mfb[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_LMA 

lma[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_LMB 

lmb[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_LMC 

lmc[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_LMD 

lmd[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_PD 

pd[n]:.

SCE_SBL_ACMGR_MEDIA_TYPE_UX_APP 

ux[n]:app or ux[n]:/app.

SCE_SBL_ACMGR_MEDIA_TYPE_UX_PATCH 

ux[n]:patch or ux[n]:/patch.

SCE_SBL_ACMGR_MEDIA_TYPE_UX_DATA 

ux[n]:data or ux[n]:/data.

SCE_SBL_ACMGR_MEDIA_TYPE_UMA 

uma[n]:.

Function Documentation

◆ ksceSblACMgrIsRootProgram()

int ksceSblACMgrIsRootProgram ( SceUID  pid)

Get process type state.

Parameters
[in]pid- The target process id
Returns
If root mode process, 1. else 0.

◆ ksceSblACMgrIsSystemProgram()

int ksceSblACMgrIsSystemProgram ( SceUID  pid)

Get process type state.

Parameters
[in]pid- The target process id
Returns
If system mode process, 1. else 0.

◆ ksceSblACMgrIsGameProgram()

int ksceSblACMgrIsGameProgram ( SceUID  pid)

Get process type state.

Parameters
[in]pid- The target process id
Returns
If game mode process, 1. else 0.

◆ ksceSblACMgrIsNonGameProgram()

int ksceSblACMgrIsNonGameProgram ( SceUID  pid)

Get process type state.

Parameters
[in]pid- The target process id
Returns
If non game mode process, 1. else 0.

◆ ksceSblACMgrIsPspEmu()

int ksceSblACMgrIsPspEmu ( SceUID  pid)

Get process type state.

Parameters
[in]pid- The target process id
Returns
If pspemu process, 1. else 0.

◆ ksceSblACMgrIsSceShell()

int ksceSblACMgrIsSceShell ( SceUID  pid)

Get process type state.

Parameters
[in]pid- The target process id
Returns
If SceShell process(authid:0x2800000000000001), 1. else 0.

◆ ksceSblACMgrIsFself()

int ksceSblACMgrIsFself ( SceUID  pid)

Get process type state.

Parameters
[in]pid- The target process id
Returns
If fake self process, 1. else 0.

◆ ksceSblACMgrGetProcessProgramAuthId()

int ksceSblACMgrGetProcessProgramAuthId ( SceUID  pid,
SceUInt64 *  authid 
)

Get process authority id.

Parameters
[in]pid- The target process id
[out]authid- The authid output pointer
Returns
SCE_OK on success, or 0x800F0916 if authid is NULL or the authentication information is unavailable.

◆ ksceSblACMgrGetMediaType()

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.

Parameters
[in]path- NUL-terminated path to classify.
[out]media_type- Receives one of SceSblACMgrMediaType.
Returns
SCE_OK on success, 0x800F090E for a NULL argument, or 0x800F0903 when no rule matches. On the no-match error, media_type receives SCE_SBL_ACMGR_MEDIA_TYPE_UX_USER.

◆ ksceSblACMgrIsDevelopmentMode()

int ksceSblACMgrIsDevelopmentMode ( void  )

Get development mode state.

Returns
If development mode, 1. else 0.

◆ VITASDK_BUILD_ASSERT_EQ()

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceSblACMgrFsAttrInfo   
)

◆ ksceSblACMgrConvertModeToFsAttribute()

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.

Parameters
[in]pid- Target process ID (ScePID).
[in,out]info- Attribute operation and output buffer.
[in]mode- File mode (SceMode).
Returns
SCE_OK on success; 0x800F0902 when an operation-6 mode has no mapping; 0x800F0903 if process authentication information is unavailable; 0x800F0916 for a NULL/invalid request; 0x800F0925 for operations 7-8; 0x800F0928 for an unsupported operation-6 process class; 0x8001000D when the selected attribute is forbidden; or 0x80010016 when a mode/access-level mapping is invalid.

◆ ksceSblACMgrConvertModeToFsAttribute2()

int ksceSblACMgrConvertModeToFsAttribute2 ( SceUID  pid,
SceSblACMgrFsAttrInfo *  info,
int  mode 
)

◆ ksceSblACMgrIsSystemProgram2()

int ksceSblACMgrIsSystemProgram2 ( SceUID  pid)

Check capability bit 1 (system-program privilege).

Parameters
[in]pid- Target process ID (ScePID).
Returns
1 if the capability is present, otherwise 0.

◆ ksceSblACMgrGetMediaType2()

int ksceSblACMgrGetMediaType2 ( const char *  path,
SceUInt32 *  media_type 
)

Get the media type selected by a path's device and path-class prefix.

Parameters
[in]path- NUL-terminated path to classify.
[out]media_type- Receives one of SceSblACMgrMediaType.
Returns
SCE_OK on success, 0x800F090E for a NULL argument, or 0x800F0903 when no rule matches. On the no-match error, media_type receives SCE_SBL_ACMGR_MEDIA_TYPE_UX_USER.

◆ ksceSblACMgrGetPaid2()

int ksceSblACMgrGetPaid2 ( SceUID  pid,
SceUInt64 *  paid 
)

Get the program authority ID from the process self-authentication information.

Parameters
[in]pid- Target process ID (ScePID).
[out]paid- Program authority ID.
Returns
SCE_OK on success, or 0x800F0916 if paid is NULL or the authentication information is unavailable.

◆ ksceSblACMgrHasCapability()

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).

Parameters
[in]pid- Target process ID (ScePID).
[in]capability_bit- Capability bit number.
Returns
1 if the capability is present, otherwise 0. Failure to obtain the process authentication information also returns 0.

◆ ksceSblACMgrHasCapability2()

int ksceSblACMgrHasCapability2 ( SceUID  pid,
int  capability_bit 
)

◆ ksceSblACMgrIsAllowLoopBackMount()

SceBool ksceSblACMgrIsAllowLoopBackMount ( SceUID  pid)

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.

Parameters
[in]pid- Target process ID.
Returns
1 when permitted, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsAllowLoopBackMount2()

SceBool ksceSblACMgrIsAllowLoopBackMount2 ( SceUID  pid)

◆ ksceSblACMgrIsAllowUsbSerial()

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.

Parameters
[in]pid- Target process ID.
Returns
1 when permitted, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsAllowUsbSerial2()

int ksceSblACMgrIsAllowUsbSerial2 ( SceUID  pid)

◆ ksceSblACMgrIsAllowVirtualMachine()

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.

Parameters
[in]pid- Target process ID.
Returns
1 when permitted, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsAllowVirtualMachine2()

int ksceSblACMgrIsAllowVirtualMachine2 ( SceUID  pid)

◆ ksceSblACMgrIsDevelopmentMode2()

int ksceSblACMgrIsDevelopmentMode2 ( void  )

Return whether development DIP switch 159 is enabled.

Returns
The value returned by ksceKernelCheckDipsw for switch 159.

◆ ksceSblACMgrIsFself2()

int ksceSblACMgrIsFself2 ( SceUID  pid)

Return whether the PAID belongs to the 0x2F0 fSELF family.

Parameters
[in]pid- Target process ID.
Returns
1 when it belongs to the family, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsGameProgram2()

int ksceSblACMgrIsGameProgram2 ( SceUID  pid)

Return whether the PAID belongs to the 0x210 game family or is the fSELF game PAID 0x2F00000000000001.

Parameters
[in]pid- Target process ID.
Returns
1 for a matching PAID, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsAllowUdcd()

SceBool ksceSblACMgrIsAllowUdcd ( SceUID  pid)

Return whether a process may use the USB device controller.

FW 3.60 grants this to capability bit 130, PAID 0x220000101CC73883, and PAID 0x2800000000000010.

Parameters
[in]pid- Target process ID.
Returns
1 when permitted, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsAllowUdcd2()

SceBool ksceSblACMgrIsAllowUdcd2 ( SceUID  pid)

◆ ksceSblACMgrIsNonGameOrGameProgram()

int ksceSblACMgrIsNonGameOrGameProgram ( SceUID  pid)

Return whether capability bit 2 or capability bit 3 is present.

Parameters
[in]pid- Target process ID.
Returns
1 when either bit is present, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsNonGameOrGameProgram2()

int ksceSblACMgrIsNonGameOrGameProgram2 ( SceUID  pid)

◆ ksceSblACMgrIsNonGameProgram2()

int ksceSblACMgrIsNonGameProgram2 ( SceUID  pid)

Return whether capability bit 3 is present.

Parameters
[in]pid- Target process ID.
Returns
1 when the bit is present, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsAllowMsMount()

SceBool ksceSblACMgrIsAllowMsMount ( SceUID  pid)

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.

Parameters
[in]pid- Target process ID.
Returns
1 when permitted, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsAllowMsMount2()

SceBool ksceSblACMgrIsAllowMsMount2 ( SceUID  pid)

◆ ksceSblACMgrIsPSMProgram()

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.

Parameters
[in]pid- Target process ID.
Returns
1 for a matching process, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsPSMProgram2()

int ksceSblACMgrIsPSMProgram2 ( SceUID  pid)

◆ ksceSblACMgrIsPSMDevAssistantApp()

int ksceSblACMgrIsPSMDevAssistantApp ( SceUID  pid)

Return whether the PAID is in the PSM development-assistant range 0x210000101CD20007-0x210000101CD20009.

Parameters
[in]pid- Target process ID.
Returns
1 for a matching PAID, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsPSMDevAssistantApp2()

int ksceSblACMgrIsPSMDevAssistantApp2 ( SceUID  pid)

◆ ksceSblACMgrIsPSMRuntime()

int ksceSblACMgrIsPSMRuntime ( SceUID  pid)

Return whether the PAID is 0x210000101CD2000A or 0x2800C0101CD2000B, the two FW 3.60 PSM runtime identities.

Parameters
[in]pid- Target process ID.
Returns
1 for a matching PAID, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsPSMRuntime2()

int ksceSblACMgrIsPSMRuntime2 ( SceUID  pid)

◆ ksceSblACMgrIsPspEmu2()

int ksceSblACMgrIsPspEmu2 ( SceUID  pid)

Return whether the PAID is 0x2800000000007009 or 0x2800000000000013.

Parameters
[in]pid- Target process ID.
Returns
1 for a matching PAID, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsKernelProgram2()

int ksceSblACMgrIsKernelProgram2 ( SceUID  pid)

Return whether capability bit 0 is present.

Parameters
[in]pid- Target process ID.
Returns
1 when the bit is present, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsSceShell2()

int ksceSblACMgrIsSceShell2 ( SceUID  pid)

Return whether the PAID is the SceShell PAID 0x2800000000000001.

Parameters
[in]pid- Target process ID.
Returns
1 for SceShell, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsUpdaterProgram()

int ksceSblACMgrIsUpdaterProgram ( SceUID  pid)

Return whether the PAID is in the updater-program range 0x2800800000000000-0x280080000000000F.

Parameters
[in]pid- Target process ID.
Returns
1 for a matching PAID, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsUpdaterProgram2()

int ksceSblACMgrIsUpdaterProgram2 ( SceUID  pid)

◆ ksceSblACMgrIsWebCoreOrWebKitProcess()

int ksceSblACMgrIsWebCoreOrWebKitProcess ( SceUID  pid)

Return whether the PAID is 0x2800000000008003 or 0x2800000000008005, the WebCore/WebKit process identities on FW 3.60.

Parameters
[in]pid- Target process ID.
Returns
1 for a matching PAID, otherwise 0. Authentication lookup failure also returns 0.

◆ ksceSblACMgrIsWebCoreOrWebKitProcess2()

int ksceSblACMgrIsWebCoreOrWebKitProcess2 ( SceUID  pid)

Variable Documentation

◆ operation

int SceSblACMgrFsAttrInfo::operation

Values 1-5 select ordinary filesystem attributes; 6 selects a PFS attribute; 7-8 are unsupported by the mode-conversion functions.

◆ attribute

void* SceSblACMgrFsAttrInfo::attribute

Caller-owned pointer to a SceUInt8 or SceUInt16 value, selected by SceSblACMgrFsAttrInfo::attribute_size.

◆ 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.