The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/sys/disk.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * ----------------------------------------------------------------------------
    3  * "THE BEER-WARE LICENSE" (Revision 42):
    4  * <phk@FreeBSD.ORG> wrote this file.  As long as you retain this notice you
    5  * can do whatever you want with this stuff. If we meet some day, and you think
    6  * this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp
    7  * ----------------------------------------------------------------------------
    8  *
    9  * $FreeBSD$
   10  *
   11  */
   12 
   13 #ifndef _SYS_DISK_H_
   14 #define _SYS_DISK_H_
   15 
   16 #ifndef _SYS_DISKSLICE_H_
   17 #include <sys/diskslice.h>
   18 #endif /* _SYS_DISKSLICE_H_ */
   19 
   20 #ifndef _SYS_DISKLABEL
   21 #include <sys/disklabel.h>
   22 #endif /* _SYS_DISKLABEL */
   23 
   24 struct disk {
   25         u_int                   d_flags;
   26         u_int                   d_dsflags;
   27         struct cdevsw           *d_devsw;
   28         dev_t                   d_dev;
   29         struct diskslices       *d_slice;
   30         struct disklabel        d_label;
   31         LIST_ENTRY(disk)        d_list;
   32 };
   33 
   34 #define DISKFLAG_LOCK           0x1
   35 #define DISKFLAG_WANTED         0x2
   36 
   37 dev_t disk_create __P((int unit, struct disk *disk, int flags, struct cdevsw *cdevsw, struct cdevsw *diskdevsw));
   38 void disk_destroy __P((dev_t dev));
   39 int disk_dumpcheck __P((dev_t dev, u_int *count, u_int *blkno, u_int *secsize));
   40 struct disk *disk_enumerate __P((struct disk *disk));
   41 void disk_invalidate __P((struct disk *disk));
   42 
   43 #endif /* _SYS_DISK_H_ */

Cache object: 4e17273936b9fe8a74f25e77954307cb


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.