"Fossies" - the Fresh Open Source Software Archive

Member "aoe-aoe6-86/conf/17.c" (4 Jul 2015, 253 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/netdevice.h>
    4 #include <linux/delay.h>
    5 #include <linux/bitmap.h>
    6 #include <linux/kdev_t.h>
    7 
    8 static DEFINE_SPINLOCK(test_lock);
    9 
   10 void *testfn(int n)
   11 {
   12     return n > 0 ? &test_lock : NULL;
   13 }