Download Allwinner Technology CO., Ltd. - linux

Transcript
Allwinner Technology CO., Ltd.
{
int sub_key_count;
sub_key_count = OSAL_Script_FetchSubKey_Count (“target”);
if(sub_key_count < 0)
printf(“fetch script sub key count fail\n”);
else
printf(“fetch script sub key count ok ,
sub_key_count =
%d\n”,
sub_key_count);
return sub_key_count;
}
By calling the function, you will get the number of all subkeys in target: 4
4.3. Fetch the Number of Main Keys
Function:int OSAL_Script_FetchMainKey_Count(void);
Parameters:No
Returned value: if succeed, return the number of main keys
If fail, return -1
Just as OSAL_Script_FetchSubKey_Count, this function is mainly used to check.
This function is capable of fetching the number of all the main keys, however, it’s primarily used
for check as well.
Configuration System and GPIO Management V1.01
Copyright © 2011 Allwinner Technology. All Rights Reserved.
April 22, 2011
20