struct.h

来自「ARM 嵌入式 系统 设计与实例开发 实验教材 二源码」· C头文件 代码 · 共 70 行

H
70
字号
/* * struct.h - Structure definitions * * Copyright (C) 1997 R間is Duchesne * Copyright (C) 2000-2001 Anton Altaparmakov (AIA) */#include <linux/ntfs_fs.h>/* Necessary forward definition. */struct ntfs_inode;/* Which files should be returned from a director listing. */#define ngt_dos   1	/* only short names, no system files */#define ngt_nt    2	/* only long names, all-uppercase becomes 			 * all-lowercase, no system files */#define ngt_posix 3	/* all names except system files */#define ngt_full  4	/* all entries */typedef struct ntfs_sb_info ntfs_volume;typedef struct {	ntfs_cluster_t lcn;	ntfs_cluster_t len;} ntfs_runlist;typedef struct ntfs_attribute {	int type;	ntfs_u16 *name;	int namelen;	int attrno;	__s64 size, allocated, initialized, compsize;	ATTR_FLAGS flags;	__u8 resident, indexed;	int cengine;	union {		void *data;             /* if resident */		struct {			ntfs_runlist *runlist;			unsigned long len;		} r;	} d;} ntfs_attribute;typedef struct ntfs_inode_info ntfs_inode;/* Structure to define IO to user buffer. do_read means that the destination * has to be written using fn_put, do_write means that the destination has to * read using fn_get. So, do_read is from a user's point of view, while put and * get are from the driver's point of view. The first argument is always the * destination of the IO. */typedef struct ntfs_io{	int do_read;	void (*fn_put)(struct ntfs_io *dest, void *buf, ntfs_size_t);	void (*fn_get)(void *buf, struct ntfs_io *src, ntfs_size_t len);	void *param;	unsigned long size;} ntfs_io;#if 0typedef struct {	ntfs_volume *vol;	ntfs_inode *ino;	int type;	char *name;	int mftno;	int start_vcn;} ntfs_attrlist_item;#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?