vitasdk
Documentation of the vitasdk

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

ScePfsMgrForKernel_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (0x10, ScePfsRndDriveId)
 
int kscePfsMount (const char *path, const ScePfsRndDriveId *rnd_drive_id, SceUInt64 program_authority_id, const void *klicensee, uint16_t mode_index)
 Mount pfs directory. More...
 
int kscePfsMount2 (const char *path, const ScePfsRndDriveId *rnd_drive_id, const void *klicensee, uint16_t mode_index)
 Mount pfs directory without authid. More...
 
int kscePfsUnmount (const ScePfsRndDriveId *rnd_drive_id)
 Unmount pfs directory. More...
 
int kscePfsApprove (const ScePfsRndDriveId *rnd_drive_id, SceUInt64 program_authority_id)
 
int kscePfsDisapprove (const ScePfsRndDriveId *rnd_drive_id, SceUInt64 program_authority_id)
 

Data Structure Documentation

◆ ScePfsRndDriveId

struct ScePfsRndDriveId
Data Fields
char drive_id[0x10]

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ()

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
ScePfsRndDriveId   
)

◆ kscePfsMount()

int kscePfsMount ( const char *  path,
const ScePfsRndDriveId rnd_drive_id,
SceUInt64  program_authority_id,
const void *  klicensee,
uint16_t  mode_index 
)

Mount pfs directory.

Parameters
[in]path- The pfs encrypted directory path
[in]rnd_drive_id- The pfs mount target Pseudo Drive strings
[in]authid- The authid
[in]klicensee- The klicensee
[in]mode_index- The mode_index
Returns
0 on success, < 0 on error.

◆ kscePfsMount2()

int kscePfsMount2 ( const char *  path,
const ScePfsRndDriveId rnd_drive_id,
const void *  klicensee,
uint16_t  mode_index 
)

Mount pfs directory without authid.

Parameters
[in]path- The pfs encrypted directory path
[in]rnd_drive_id- The pfs mount target Pseudo Drive strings
[in]klicensee- The klicensee
[in]mode_index- The mode_index
Returns
0 on success, < 0 on error.

◆ kscePfsUnmount()

int kscePfsUnmount ( const ScePfsRndDriveId rnd_drive_id)

Unmount pfs directory.

Parameters
[in]rnd_drive_id- The pfs mount drive strings
Returns
0 on success, < 0 on error.

◆ kscePfsApprove()

int kscePfsApprove ( const ScePfsRndDriveId rnd_drive_id,
SceUInt64  program_authority_id 
)

◆ kscePfsDisapprove()

int kscePfsDisapprove ( const ScePfsRndDriveId rnd_drive_id,
SceUInt64  program_authority_id 
)