Lines Matching defs:gendisk
142 struct gendisk { struct
147 int major;
148 int first_minor;
149 int minors;
151 char disk_name[DISK_NAME_LEN]; /* name of major driver */
153 unsigned short events; /* supported events */
154 unsigned short event_flags; /* flags related to event processing */
156 struct xarray part_tbl;
157 struct block_device *part0;
159 const struct block_device_operations *fops;
160 struct request_queue *queue;
161 void *private_data;
163 struct bio_set bio_split;
165 int flags;
166 unsigned long state;
175 struct mutex open_mutex; /* open/close mutex */
176 unsigned open_partitions; /* number of open partitions */
178 struct backing_dev_info *bdi;
179 struct kobject queue_kobj; /* the queue/ directory */
180 struct kobject *slave_dir;
182 struct list_head slave_bdevs;
184 struct timer_rand_state *random;
185 atomic_t sync_io; /* RAID */
186 struct disk_events *ev;
195 unsigned int nr_zones;
196 unsigned int zone_capacity;
197 unsigned int last_zone_capacity;
198 unsigned long __rcu *conv_zones_bitmap;
199 unsigned int zone_wplugs_hash_bits;
200 atomic_t nr_zone_wplugs;
201 spinlock_t zone_wplugs_lock;
202 struct mempool_s *zone_wplugs_pool;
203 struct hlist_head *zone_wplugs_hash;
204 struct workqueue_struct *zone_wplugs_wq;
208 struct cdrom_device_info *cdi;
233 static inline unsigned int disk_openers(struct gendisk *disk) in disk_openers() argument