xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
载入中...
搜索中...
未找到
xt_vfs_thread_ctx结构体 参考

线程上下文——存储每线程 errno 和可选 CWD 更多...

#include <xt_vfs_port.h>

成员变量

void * thread_id
int32_t last_errno
uint16_t open_count
char cwd [128]

详细描述

线程上下文——存储每线程 errno 和可选 CWD

在文件 xt_vfs_port.h 第 162 行定义.

结构体成员变量说明

◆ cwd

char xt_vfs_thread_ctx::cwd[128]

始终存在,CWD 关闭时占位不分配 API

在文件 xt_vfs_port.h 第 166 行定义.

◆ last_errno

int32_t xt_vfs_thread_ctx::last_errno

该线程最后一次错误码

在文件 xt_vfs_port.h 第 164 行定义.

◆ open_count

uint16_t xt_vfs_thread_ctx::open_count

该线程当前打开的文件/目录句柄计数

在文件 xt_vfs_port.h 第 165 行定义.

◆ thread_id

void* xt_vfs_thread_ctx::thread_id

线程 ID,无 OS 时为 NULL

在文件 xt_vfs_port.h 第 163 行定义.


该结构体的文档由以下文件生成: