nodes.h

来自「开放源码的Boot」· C头文件 代码 · 共 61 行

H
61
字号
/* * nodes.h: Node header file * * (C) 1996,1997 Russell King */#ifndef NODES_H#define NODES_H struct node{	struct node *next;	int type;	union	{		char *string;		struct node *n;		unsigned long size;		unsigned int flags;		unsigned int offset;	} u;};#define FLAG_READONLY	1#define FLAG_PONARGS	2#define FLAG_RDLOAD	4#define FLAG_RDPROMPT	8struct compressed_node{	int		type;	char		*name;	char		*path;	char		*passwd;	char		*initrd_path;	char		*args;	int		root;	unsigned long	ramdisk_size;	unsigned long	flags;	unsigned int	rdstart;	int		file_name_offset;	int		file_bmap_offset;	int		file_args_offset;	int		file_passwd_offset;	int		file_initrd_offset;	unsigned long	*bmap;	unsigned long	bmap_size;	unsigned long	*initrd;	unsigned long	initrd_size;	struct compressed_node *next;};extern struct node *config_node;extern struct compressed_node *cnode;extern int num_cnodes;extern int compress_nodes (void);extern void dump_cnodes (struct compressed_node *cnode);#endif

⌨️ 快捷键说明

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