函数 | |
void | los_vfs_init (void) |
Initializes the vfs filesystem 更多... | |
void | CloseOnExec (struct files_struct *files) |
void | SetCloexecFlag (int procFd) |
bool | CheckCloexecFlag (int procFd) |
void | ClearCloexecFlag (int procFd) |
void | clear_fd (int fd) |
char * | rindex (const char *s, int c) |
locate character in string. 更多... | |
void | set_label (const char *name) |
int | format (const char *dev, int sectors, int option) |
formatting sd card 更多... | |
void | ls (const char *pathname) |
list directory contents. 更多... | |
int | los_set_systime_status (BOOL b_status) |
set current system time is valid or invalid for FAT file system. 更多... | |
int | chattr (const char *pathname, struct IATTR *attr) |
int | VfsFcntl (int fd, int cmd,...) |
INT32 | LOS_BcacheSyncByName (const CHAR *name) |
INT32 | LOS_GetDirtyRatioByName (const CHAR *name) |
VOID | LOS_SetDirtyRatioThreshold (UINT32 dirtyRatio) |
VOID | LOS_SetSyncThreadInterval (UINT32 interval) |
设置同步间隔,5秒 更多... | |
INT32 | LOS_SetSyncThreadPrio (UINT32 prio, const CHAR *name) |
设置同步任务优先级,10 更多... | |
在文件 vfs_chattr.c 第 58 行定义.
void CloseOnExec | ( | struct files_struct * | files | ) |
在文件 vfs_cloexec.c 第 42 行定义.
formatting sd card
dev | [IN] Type #const char* path of the block device to format, which must be a really existing block device node. |
sectors | [IN] Type int number of sectors per cluster. |
option | [IN] Type int option of format. |
#0 | Format success. |
#-1 | Format failed. |
name | [IN] name of the disk |
#0 | On success. |
INT32 | On failure. |
name | [IN] name of the disk |
INT32 | the percentage of dirty blocks. |
#-1 | On failure. |
set current system time is valid or invalid for FAT file system.
b_status | [IN] Type BOOL system time status. |
#0 | set status success |
#-22 | Invalid argument |
VOID LOS_SetDirtyRatioThreshold | ( | UINT32 | dirtyRatio | ) |
dirtyRatio | [IN] Threshold of the percentage of dirty blocks, expressed in %. |
#VOID | None. |
VOID LOS_SetSyncThreadInterval | ( | UINT32 | interval | ) |
设置同步间隔,5秒
interval | [IN] the interval time for the sync thread to wake up, in milliseconds, accuracy is 10ms. |
#VOID | None. |
设置同步任务优先级,10
prio | [IN] priority of sync thread to be set |
name | [IN] name of the disk |
INT32 | On failure. |
0 | On success. |
Initializes the vfs filesystem
none |
none |
在文件 vfs_init.c 第 70 行定义.
void ls | ( | const char * | pathname | ) |
list directory contents.
pathname | [IN] Type #const char* The file pathname. |
<ul>None.</ul> |
在文件 vfs_other.c 第 600 行定义.
char * rindex | ( | const char * | s, |
int | c | ||
) |
locate character in string.
s | [IN] Type #const char* A pointer to string. |
c | [IN] Type int The character. |
#char* | a pointer to the matched character or NULL if the character is not found. |
在文件 vfs_other.c 第 432 行定义.
void set_label | ( | const char * | name | ) |
name | [IN] label to set, the length must be less than 12 |
void | None. |
#0 | On success. |
#-1 | On failure with errno set. |
CONTINE_NUTTX_FCNTL | doesn't support some cmds in VfsFcntl, needs to continue going through Nuttx vfs operation. |
在文件 vfs_fcntl.c 第 68 行定义.