Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

fs(0)

types(0)



  inode(0)                            CLIX                            inode(0)



  NAME

    inode - Format of an inode

  SYNOPSIS

    #include <sys/types.h>

    #include <sys/ino.h>

  DESCRIPTION

    An inode for a plain file or directory in a file system has the following
    structure defined in the <sys/ino.h> header file.

    /* Inode structure as it appears on a disk block. */

    typedef struct inode {
         struct inode *i_forw;  /* inode hash chain */
         struct inode *i_back;  /* '' */
         struct inode *av_forw; /* freelist chain */
         struct inode *av_back; /* '' */
         int    *i_fsptr;       /* "typeless" pointer to fs dependent */
         long   i_number;       /* i number, 1-to-1 with dev address */
         ushort i_ftype;        /* file type = IFDIR, IFREG, etc. */
         short  i_fstyp;        /* File system type */
         off_t  i_size;         /* size of file */
         ushort i_uid;          /* owner */
         ushort i_gid;          /* group of owner */
         ushort i_flag;
         ushort i_fill;
         cnt_t  i_count;        /* reference count */
         short  i_nlink;        /* directory entries */
         dev_t  i_rdev;         /* Raw device number */
         dev_t  i_dev;          /* device where inode resides */

    For the meaning of the defined types off_t and time_t see types(0).

  RELATED INFORMATION

    Functions:  stat(2)

    Files:  fs(0), types(0)











  2/94 - Intergraph Corporation                                              1




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026