summaryrefslogtreecommitdiff
path: root/include/linux/cdev.h
blob: fb4591977b039a80587fa79d899c2f86d632657b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef _LINUX_CDEV_H
#define _LINUX_CDEV_H

#include <linux/kobject.h>
#include <linux/kdev_t.h>
#include <linux/list.h>

struct file_operations;
struct inode;
struct module;

struct cdev {
	struct kobject kobj;
	struct module *owner;
	const struct file_operations *ops;
	struct list_head list;
	dev_t dev;
	unsigned int count;
};

void cdev_init(struct cdev *, const struct file_operations *);

struct cdev *cdev_alloc(void);

void cdev_put(struct cdev *p);

int cdev_add(struct cdev *, dev_t, unsigned);

void cdev_del(struct cdev *);

void cd_forget(struct inode *);

extern struct backing_dev_info directly_mappable_cdev_bdi;

#endif
ro/kernel/commit/block/Makefile?h=linux-rolling-lts&id=818551e2b2c662a1b26de6b4f7d6b8411a838d18'>Merge branch 'for-4.11/next' into for-4.11/linus-mergeJens Axboe 2017-02-06block: Add Sed-opal libraryScott Bauer 2017-01-31block: make scsi_request and scsi ioctl support optionalChristoph Hellwig 2017-01-27blk-mq: fix debugfs compilation issuesOmar Sandoval 2017-01-27blk-mq: create debugfs directory treeOmar Sandoval 2017-01-17mq-deadline: add blk-mq adaptation of the deadline IO schedulerJens Axboe 2017-01-17blk-mq-sched: add framework for MQ capable IO schedulersJens Axboe 2016-11-10blk-wbt: add general throttling mechanismJens Axboe 2016-11-10block: add scalable completion tracking of requestsJens Axboe 2016-10-18block: Implement support for zoned block devicesHannes Reinecke 2016-10-09Merge branch 'for-4.9/block-smp' of git://git.kernel.dk/linux-blockLinus Torvalds 2016-09-22blk-mq/cpu-notif: Convert to new hotplug state machineThomas Gleixner 2016-09-19blk_mq: linux/blk-mq.h does not include all the headers it depends onStephen Rothwell 2016-09-15blk-mq: provide a default queue mapping for PCI deviceChristoph Hellwig 2016-01-23Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledfo...Linus Torvalds 2016-01-09badblocks: Add core badblock management codeVishal Verma 2015-12-11irq_poll: make blk-iopoll available outside the block layerChristoph Hellwig 2014-09-27block: Add T10 Protection Information functionsMartin K. Petersen 2014-05-19block: move mm/bounce.c to block/Jens Axboe 2014-05-19block: move ioprio.c from fs/ to block/Jens Axboe 2014-05-19block: move bio.c and bio-integrity.c from fs/ to block/Jens Axboe 2013-10-25blk-mq: new multi-queue block IO queueing mechanismJens Axboe 2013-09-30block: change config option name for cmdline partition parsingPaul Gortmaker