aoe  87
About: AoE (ATA over Ethernet) Protocol Driver (Linux kernel 4.8.x and greater are not supported).
  Fossies Dox: aoe-87.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

24-cdc4.c
Go to the documentation of this file.
1 #include <linux/hdreg.h>
2 #include <linux/blkdev.h>
3 #include <linux/init.h>
4 
5 struct aoe_chardev {
7  char name[32];
8 };
9 
10 static struct class *aoe_class;
11 static struct aoe_chardev chardevs[1];
12 
13 int
15 {
16  class_device_create(aoe_class,
17  MKDEV(152, chardevs[0].minor),
18  NULL, chardevs[0].name);
19 
20  return 0;
21 }
aoe_chardev::name
char name[32]
Definition: 24-cdc4.c:7
aoe_chardev
Definition: 24-cdc4.c:5
aoe_class
static struct class * aoe_class
Definition: 24-cdc4.c:10
ulong
unsigned long ulong
Definition: aoe-sancheck.c:30
aoe_chardev::minor
ulong minor
Definition: 24-cdc4.c:6
chardevs
static struct aoe_chardev chardevs[1]
Definition: 24-cdc4.c:11
aoechr_init
int aoechr_init(void)
Definition: 24-cdc4.c:14