Linux Kernel设备驱动模型之 struct subsys_private

子系统描述:

/**  * struct subsys_private - structure to hold the private to the driver core portions of the bus_type/class structure.  *  * @subsys - the struct kset that defines this subsystem  * @devices_kset - the subsystem's 'devices' directory  * @interfaces - list of subsystem interfaces associated  * @mutex - protect the devices, and interfaces lists.  *  * @drivers_kset - the list of drivers associated  * @klist_devices - the klist to iterate over the @devices_kset  * @klist_drivers - the klist to iterate over the @drivers_kset  * @bus_notifier - the bus notifier list for anything that cares about things  *                 on this bus.  * @bus - pointer back to the struct bus_type that this structure is associated  *        with.  *  * @glue_dirs - "glue" directory to put in-between the parent device to  *              avoid namespace conflicts  * @class - pointer back to the struct class that this structure is associated  *          with.  *  * This structure is the one that is the actual kobject allowing struct  * bus_type/class to be statically allocated safely.  Nothing outside of the  * driver core should ever touch these fields.  */ struct subsys_private {  struct kset subsys;  struct kset *devices_kset;  struct list_head interfaces;  struct mutex mutex;

 struct kset *drivers_kset;  struct klist klist_devices;  struct klist klist_drivers;  struct blocking_notifier_head bus_notifier;  unsigned int drivers_autoprobe:1;  struct bus_type *bus;

 struct kset glue_dirs;  struct class *class; };

 

 
 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值