"Fossies" - the Fresh Open Source Software Archive

Member "aoe-aoe6-86/conf/24-cdc5.c" (4 Jul 2015, 349 Bytes) of archive /linux/misc/aoe-aoe6-86.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #include <linux/hdreg.h>
    2 #include <linux/blkdev.h>
    3 #include <linux/init.h>
    4 
    5 struct aoe_chardev {
    6     ulong minor;
    7     char name[32];
    8 };
    9 
   10 static struct class *aoe_class;
   11 static struct aoe_chardev chardevs[1];
   12 
   13 int
   14 aoechr_init(void)
   15 {
   16     class_device_create(aoe_class, NULL,
   17                 MKDEV(152, chardevs[0].minor),
   18                 NULL, chardevs[0].name);
   19 
   20     return 0;
   21 }