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

📄 lddbus.h

📁 Linux设备驱动的经典教材, 该电子书是第三版,并附有全部配套代码.
💻 H
字号:
/* * Definitions for the virtual LDD bus. * * $Id: lddbus.h,v 1.4 2004/08/20 18:49:44 corbet Exp $ *///extern struct device ldd_bus;extern struct bus_type ldd_bus_type;/* * The LDD driver type. */struct ldd_driver {	char *version;	struct module *module;	struct device_driver driver;	struct driver_attribute version_attr;};#define to_ldd_driver(drv) container_of(drv, struct ldd_driver, driver);/* * A device type for things "plugged" into the LDD bus. */struct ldd_device {	char *name;	struct ldd_driver *driver;	struct device dev;};#define to_ldd_device(dev) container_of(dev, struct ldd_device, dev);extern int register_ldd_device(struct ldd_device *);extern void unregister_ldd_device(struct ldd_device *);extern int register_ldd_driver(struct ldd_driver *);extern void unregister_ldd_driver(struct ldd_driver *);

⌨️ 快捷键说明

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