更新日期: 2022/06/01 来源: https://gitee.com/weharmony/kernel_liteos_a_note
ProcDirEntry结构体 参考

proc 目录/文件项, @notethinking 直接叫 ProcEntry不香吗 ?
操作 /proc的 真正结构体 更多...

#include <proc_fs.h>

成员变量

uint uid
 
uint gid
 
mode_t mode
 模式(读|写...) 更多...
 
int flags
 标签 更多...
 
const struct ProcFileOperationsprocFileOps
 驱动程序,每个 /proc 下目录的驱动程序都不一样 更多...
 
struct ProcFilepf
 proc文件指针 更多...
 
struct ProcDirEntrynext
 
struct ProcDirEntryparent
 
struct ProcDirEntrysubdir
 当前目录项的关系项 更多...
 
voiddata
 
atomic_t count
 
spinlock_t pdeUnloadLock
 
int nameLen
 
struct ProcDirEntrypdirCurrent
 当前目录 更多...
 
char name [NAME_MAX]
 
enum VnodeType type
 节点类型 更多...
 

详细描述

proc 目录/文件项, @notethinking 直接叫 ProcEntry不香吗 ?
操作 /proc的 真正结构体

在文件 proc_fs.h101 行定义.

结构体成员变量说明

◆ count

atomic_t ProcDirEntry::count

在文件 proc_fs.h110 行定义.

◆ data

void* ProcDirEntry::data

在文件 proc_fs.h109 行定义.

◆ flags

int ProcDirEntry::flags

标签

在文件 proc_fs.h105 行定义.

◆ gid

uint ProcDirEntry::gid

在文件 proc_fs.h103 行定义.

◆ mode

mode_t ProcDirEntry::mode

模式(读|写...)

在文件 proc_fs.h104 行定义.

◆ name

char ProcDirEntry::name[NAME_MAX]

在文件 proc_fs.h114 行定义.

◆ nameLen

int ProcDirEntry::nameLen

在文件 proc_fs.h112 行定义.

◆ next

struct ProcDirEntry* ProcDirEntry::next

在文件 proc_fs.h108 行定义.

◆ parent

struct ProcDirEntry * ProcDirEntry::parent

在文件 proc_fs.h108 行定义.

◆ pdeUnloadLock

spinlock_t ProcDirEntry::pdeUnloadLock

在文件 proc_fs.h111 行定义.

◆ pdirCurrent

struct ProcDirEntry* ProcDirEntry::pdirCurrent

当前目录

在文件 proc_fs.h113 行定义.

◆ pf

struct ProcFile* ProcDirEntry::pf

proc文件指针

在文件 proc_fs.h107 行定义.

◆ procFileOps

const struct ProcFileOperations* ProcDirEntry::procFileOps

驱动程序,每个 /proc 下目录的驱动程序都不一样

在文件 proc_fs.h106 行定义.

◆ subdir

struct ProcDirEntry * ProcDirEntry::subdir

当前目录项的关系项

在文件 proc_fs.h108 行定义.

◆ type

enum VnodeType ProcDirEntry::type

节点类型

在文件 proc_fs.h115 行定义.

◆ uid

uint ProcDirEntry::uid

在文件 proc_fs.h102 行定义.


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