WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_drvbox

函数

unsigned int osal_drvmgr_switch_to_drvbox (unsigned int drv_id)
 Switch region from usr box to driver box.
 
void osal_drvmgr_switch_to_usrbox (void)
 Switch region from driver box to usr box.
 

详细描述

函数说明

◆ osal_drvmgr_switch_to_drvbox()

unsigned int osal_drvmgr_switch_to_drvbox ( unsigned int  drv_id)

Switch region from usr box to driver box.

Description:
This API is used to switch executing region from usr box to driver box, and change pmp/mpu configuration respectivly.
注意
This api can only be invoked in common usr lib.
参数
drv_id[in] used to check the invoking permission of the driver.
返回值
DRV_BOX_INVALID_SWITCHNo need to do the switching process due to the limitation.
DRV_BOX_SWITCH_FAILPermission rejected.
LOS_OKBox region switching success.
Support System:
seliteos.

◆ osal_drvmgr_switch_to_usrbox()

void osal_drvmgr_switch_to_usrbox ( void  )

Switch region from driver box to usr box.

Description:
This API is used to switch box running region from driver box to usr box, and change pmp/mpu configuration respectivly.
注意
This api can only be invoked in common usr lib space.
Support System:
seliteos.