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/boot/rawfs.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 /*      rawfs.h - Raw Minix file system support.        Author: Kees J. Bot
    2  *
    3  *              off_t r_super(int *block_size);
    4  *                      Initialize variables, returns the size of a valid Minix
    5  *                      file system blocks, but zero on error. 
    6  *
    7  *              void r_stat(ino_t file, struct stat *stp);
    8  *                      Return information about a file like stat(2) and
    9  *                      remembers file for the next two calls.
   10  *
   11  *              off_t r_vir2abs(off_t virblockno);
   12  *                      Translate virtual block number in file to absolute
   13  *                      disk block number.  Returns 0 if the file contains
   14  *                      a hole, or -1 if the block lies past the end of file.
   15  *
   16  *              ino_t r_readdir(char *name);
   17  *                      Return next directory entry or 0 if there are no more.
   18  *                      Returns -1 and sets errno on error.
   19  *
   20  *              ino_t r_lookup(ino_t cwd, char *path);
   21  *                      A utility function that translates a pathname to an
   22  *                      inode number.  It starts from directory "cwd" unless
   23  *                      path starts with a '/', then from ROOT_INO.
   24  *                      Returns 0 and sets errno on error.
   25  *
   26  *      One function needs to be provided by the outside world:
   27  *
   28  *              void readblock(off_t blockno, char *buf, int block_size);
   29  *                      Read a block into the buffer.  Outside world handles
   30  *                      errors.
   31  */
   32 
   33 #define ROOT_INO        ((ino_t) 1)     /* Inode nr of root dir. */
   34 
   35 off_t r_super(int *);
   36 void r_stat(Ino_t file, struct stat *stp);
   37 off_t r_vir2abs(off_t virblockno);
   38 ino_t r_readdir(char *name);
   39 ino_t r_lookup(Ino_t cwd, char *path);
   40 
   41 /*
   42  * $PchId: rawfs.h,v 1.4 1996/04/19 08:16:36 philip Exp $
   43  */

Cache object: f9a58e8ce663b30bbf70d5cda3798d71


[ 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.