⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 depmod.h

📁 用于linux2.6内核支持模块的插入和卸载
💻 H
字号:
#ifndef MODINITTOOLS_DEPMOD_H#define MODINITTOOLS_DEPMOD_H#include "list.h"struct module;/* Functions provided by depmod.c */void fatal(const char *fmt, ...) __attribute__ ((noreturn,						 format (printf, 1, 2)));void warn(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));void *do_nofail(void *ptr, const char *file, int line, const char *expr);#define NOFAIL(ptr)	do_nofail((ptr), __FILE__, __LINE__, #ptr)void add_symbol(const char *name, struct module *owner);struct module *find_symbol(const char *name, const char *modname, int weak);void add_dep(struct module *mod, struct module *depends_on);struct module{	/* Next module in list of all modules */	struct module *next;	/* 64 or 32 bit? */	struct module_ops *ops;	/* Dependencies: filled in by ops->calculate_deps() */	unsigned int num_deps;	struct module **deps;	/* Set while we are traversing dependencies */	struct list_head dep_list;	/* Tables extracted from module by ops->fetch_tables(). */	/* FIXME: Do other tables too --RR */	unsigned int pci_size;	void *pci_table;	unsigned int usb_size;	void *usb_table;	unsigned int ieee1394_size;	void *ieee1394_table;	unsigned int ccw_size;	void *ccw_table;	unsigned int pnp_size;	void *pnp_table;	unsigned int pnp_card_size;	unsigned int pnp_card_offset;	void *pnp_card_table;	unsigned int input_size;	void *input_table;	/* File contents and length. */	void *data;	unsigned long len;	char pathname[0];};#endif /* MODINITTOOLS_DEPMOD_H */

⌨️ 快捷键说明

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