Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
coda.h File Reference

Go to the source code of this file.

Data Structures

struct  venus_dirent
 
struct  CodaFid
 
struct  coda_vattr
 
struct  coda_statfs
 
struct  coda_in_hdr
 
struct  coda_out_hdr
 
struct  coda_root_out
 
struct  coda_root_in
 
struct  coda_open_in
 
struct  coda_open_out
 
struct  coda_store_in
 
struct  coda_store_out
 
struct  coda_release_in
 
struct  coda_release_out
 
struct  coda_close_in
 
struct  coda_close_out
 
struct  coda_ioctl_in
 
struct  coda_ioctl_out
 
struct  coda_getattr_in
 
struct  coda_getattr_out
 
struct  coda_setattr_in
 
struct  coda_setattr_out
 
struct  coda_access_in
 
struct  coda_access_out
 
struct  coda_lookup_in
 
struct  coda_lookup_out
 
struct  coda_create_in
 
struct  coda_create_out
 
struct  coda_remove_in
 
struct  coda_remove_out
 
struct  coda_link_in
 
struct  coda_link_out
 
struct  coda_rename_in
 
struct  coda_rename_out
 
struct  coda_mkdir_in
 
struct  coda_mkdir_out
 
struct  coda_rmdir_in
 
struct  coda_rmdir_out
 
struct  coda_symlink_in
 
struct  coda_symlink_out
 
struct  coda_readlink_in
 
struct  coda_readlink_out
 
struct  coda_fsync_in
 
struct  coda_fsync_out
 
struct  coda_vget_in
 
struct  coda_vget_out
 
struct  coda_purgeuser_out
 
struct  coda_zapfile_out
 
struct  coda_zapdir_out
 
struct  coda_purgefid_out
 
struct  coda_replace_out
 
struct  coda_open_by_fd_in
 
struct  coda_open_by_fd_out
 
struct  coda_open_by_path_in
 
struct  coda_open_by_path_out
 
struct  coda_statfs_in
 
struct  coda_statfs_out
 
union  inputArgs
 
union  outputArgs
 
union  coda_downcalls
 
struct  ViceIoctl
 
struct  PioctlData
 
struct  coda_mount_data
 

Macros

#define CODA_MAXSYMLINKS   10
 
#define cdev_t   dev_t
 
#define __BIT_TYPES_DEFINED__
 
#define CODA_MAXNAMLEN   255
 
#define CODA_MAXPATHLEN   1024
 
#define CODA_MAXSYMLINK   10
 
#define C_O_READ   0x001
 
#define C_O_WRITE   0x002
 
#define C_O_TRUNC   0x010
 
#define C_O_EXCL   0x100
 
#define C_O_CREAT   0x200
 
#define C_M_READ   00400
 
#define C_M_WRITE   00200
 
#define C_A_C_OK   8 /* Test for writing upon create. */
 
#define C_A_R_OK   4 /* Test for read permission. */
 
#define C_A_W_OK   2 /* Test for write permission. */
 
#define C_A_X_OK   1 /* Test for execute permission. */
 
#define C_A_F_OK   0 /* Test for existence. */
 
#define _VENUS_DIRENT_T_   1
 
#define DIRSIZ(dp)
 
#define CDT_UNKNOWN   0
 
#define CDT_FIFO   1
 
#define CDT_CHR   2
 
#define CDT_DIR   4
 
#define CDT_BLK   6
 
#define CDT_REG   8
 
#define CDT_LNK   10
 
#define CDT_SOCK   12
 
#define CDT_WHT   14
 
#define IFTOCDT(mode)   (((mode) & 0170000) >> 12)
 
#define CDTTOIF(dirtype)   ((dirtype) << 12)
 
#define _VUID_T_
 
#define coda_f2i(fid)   (fid ? (fid->opaque[3] ^ (fid->opaque[2]<<10) ^ (fid->opaque[1]<<20) ^ fid->opaque[0]) : 0)
 
#define _VENUS_VATTR_T_
 
#define CODA_ROOT   2
 
#define CODA_OPEN_BY_FD   3
 
#define CODA_OPEN   4
 
#define CODA_CLOSE   5
 
#define CODA_IOCTL   6
 
#define CODA_GETATTR   7
 
#define CODA_SETATTR   8
 
#define CODA_ACCESS   9
 
#define CODA_LOOKUP   10
 
#define CODA_CREATE   11
 
#define CODA_REMOVE   12
 
#define CODA_LINK   13
 
#define CODA_RENAME   14
 
#define CODA_MKDIR   15
 
#define CODA_RMDIR   16
 
#define CODA_SYMLINK   18
 
#define CODA_READLINK   19
 
#define CODA_FSYNC   20
 
#define CODA_VGET   22
 
#define CODA_SIGNAL   23
 
#define CODA_REPLACE   24 /* DOWNCALL */
 
#define CODA_FLUSH   25 /* DOWNCALL */
 
#define CODA_PURGEUSER   26 /* DOWNCALL */
 
#define CODA_ZAPFILE   27 /* DOWNCALL */
 
#define CODA_ZAPDIR   28 /* DOWNCALL */
 
#define CODA_PURGEFID   30 /* DOWNCALL */
 
#define CODA_OPEN_BY_PATH   31
 
#define CODA_RESOLVE   32
 
#define CODA_REINTEGRATE   33
 
#define CODA_STATFS   34
 
#define CODA_STORE   35
 
#define CODA_RELEASE   36
 
#define CODA_NCALLS   37
 
#define DOWNCALL(opcode)   (opcode >= CODA_REPLACE && opcode <= CODA_PURGEFID)
 
#define VC_MAXDATASIZE   8192
 
#define VC_MAXMSGSIZE
 
#define CIOC_KERNEL_VERSION   _IOWR('c', 10, size_t)
 
#define CODA_KERNEL_VERSION   3 /* 128-bit file identifiers */
 
#define CLU_CASE_SENSITIVE   0x01
 
#define CLU_CASE_INSENSITIVE   0x02
 
#define CODA_NOCACHE   0x80000000
 
#define PIOCPARM_MASK   0x0000ffff
 
#define CODA_CONTROL   ".CONTROL"
 
#define CODA_CONTROLLEN   8
 
#define CTL_INO   -1
 
#define CODA_MOUNT_VERSION   1
 

Typedefs

typedef signed char int8_t
 
typedef unsigned char u_int8_t
 
typedef short int16_t
 
typedef unsigned short u_int16_t
 
typedef int int32_t
 
typedef unsigned int u_int32_t
 
typedef u_int32_t vuid_t
 
typedef u_int32_t vgid_t
 

Enumerations

enum  coda_vtype {
  C_VNON, C_VREG, C_VDIR, C_VBLK,
  C_VCHR, C_VLNK, C_VSOCK, C_VFIFO,
  C_VBAD
}
 

Macro Definition Documentation

#define __BIT_TYPES_DEFINED__

Definition at line 121 of file coda.h.

#define _VENUS_DIRENT_T_   1

Definition at line 161 of file coda.h.

#define _VENUS_VATTR_T_

Definition at line 208 of file coda.h.

#define _VUID_T_

Definition at line 195 of file coda.h.

#define C_A_C_OK   8 /* Test for writing upon create. */

Definition at line 152 of file coda.h.

#define C_A_F_OK   0 /* Test for existence. */

Definition at line 156 of file coda.h.

#define C_A_R_OK   4 /* Test for read permission. */

Definition at line 153 of file coda.h.

#define C_A_W_OK   2 /* Test for write permission. */

Definition at line 154 of file coda.h.

#define C_A_X_OK   1 /* Test for execute permission. */

Definition at line 155 of file coda.h.

#define C_M_READ   00400

Definition at line 148 of file coda.h.

#define C_M_WRITE   00200

Definition at line 149 of file coda.h.

#define C_O_CREAT   0x200

Definition at line 145 of file coda.h.

#define C_O_EXCL   0x100

Definition at line 144 of file coda.h.

#define C_O_READ   0x001

Definition at line 141 of file coda.h.

#define C_O_TRUNC   0x010

Definition at line 143 of file coda.h.

#define C_O_WRITE   0x002

Definition at line 142 of file coda.h.

#define cdev_t   dev_t

Definition at line 110 of file coda.h.

#define CDT_BLK   6

Definition at line 180 of file coda.h.

#define CDT_CHR   2

Definition at line 178 of file coda.h.

#define CDT_DIR   4

Definition at line 179 of file coda.h.

#define CDT_FIFO   1

Definition at line 177 of file coda.h.

#define CDT_LNK   10

Definition at line 182 of file coda.h.

#define CDT_REG   8

Definition at line 181 of file coda.h.

#define CDT_SOCK   12

Definition at line 183 of file coda.h.

#define CDT_UNKNOWN   0

Definition at line 176 of file coda.h.

#define CDT_WHT   14

Definition at line 184 of file coda.h.

#define CDTTOIF (   dirtype)    ((dirtype) << 12)

Definition at line 190 of file coda.h.

#define CIOC_KERNEL_VERSION   _IOWR('c', 10, size_t)

Definition at line 288 of file coda.h.

#define CLU_CASE_INSENSITIVE   0x02

Definition at line 421 of file coda.h.

#define CLU_CASE_SENSITIVE   0x01

Definition at line 420 of file coda.h.

#define CODA_ACCESS   9

Definition at line 255 of file coda.h.

#define CODA_CLOSE   5

Definition at line 251 of file coda.h.

#define CODA_CONTROL   ".CONTROL"

Definition at line 728 of file coda.h.

#define CODA_CONTROLLEN   8

Definition at line 729 of file coda.h.

#define CODA_CREATE   11

Definition at line 257 of file coda.h.

#define coda_f2i (   fid)    (fid ? (fid->opaque[3] ^ (fid->opaque[2]<<10) ^ (fid->opaque[1]<<20) ^ fid->opaque[0]) : 0)

Definition at line 204 of file coda.h.

#define CODA_FLUSH   25 /* DOWNCALL */

Definition at line 269 of file coda.h.

#define CODA_FSYNC   20

Definition at line 265 of file coda.h.

#define CODA_GETATTR   7

Definition at line 253 of file coda.h.

#define CODA_IOCTL   6

Definition at line 252 of file coda.h.

#define CODA_KERNEL_VERSION   3 /* 128-bit file identifiers */

Definition at line 290 of file coda.h.

#define CODA_LINK   13

Definition at line 259 of file coda.h.

#define CODA_LOOKUP   10

Definition at line 256 of file coda.h.

#define CODA_MAXNAMLEN   255

Definition at line 134 of file coda.h.

#define CODA_MAXPATHLEN   1024

Definition at line 135 of file coda.h.

#define CODA_MAXSYMLINK   10

Definition at line 136 of file coda.h.

#define CODA_MAXSYMLINKS   10

Definition at line 70 of file coda.h.

#define CODA_MKDIR   15

Definition at line 261 of file coda.h.

#define CODA_MOUNT_VERSION   1

Definition at line 734 of file coda.h.

#define CODA_NCALLS   37

Definition at line 280 of file coda.h.

#define CODA_NOCACHE   0x80000000

Definition at line 650 of file coda.h.

#define CODA_OPEN   4

Definition at line 250 of file coda.h.

#define CODA_OPEN_BY_FD   3

Definition at line 249 of file coda.h.

#define CODA_OPEN_BY_PATH   31

Definition at line 274 of file coda.h.

#define CODA_PURGEFID   30 /* DOWNCALL */

Definition at line 273 of file coda.h.

#define CODA_PURGEUSER   26 /* DOWNCALL */

Definition at line 270 of file coda.h.

#define CODA_READLINK   19

Definition at line 264 of file coda.h.

#define CODA_REINTEGRATE   33

Definition at line 276 of file coda.h.

#define CODA_RELEASE   36

Definition at line 279 of file coda.h.

#define CODA_REMOVE   12

Definition at line 258 of file coda.h.

#define CODA_RENAME   14

Definition at line 260 of file coda.h.

#define CODA_REPLACE   24 /* DOWNCALL */

Definition at line 268 of file coda.h.

#define CODA_RESOLVE   32

Definition at line 275 of file coda.h.

#define CODA_RMDIR   16

Definition at line 262 of file coda.h.

#define CODA_ROOT   2

Definition at line 248 of file coda.h.

#define CODA_SETATTR   8

Definition at line 254 of file coda.h.

#define CODA_SIGNAL   23

Definition at line 267 of file coda.h.

#define CODA_STATFS   34

Definition at line 277 of file coda.h.

#define CODA_STORE   35

Definition at line 278 of file coda.h.

#define CODA_SYMLINK   18

Definition at line 263 of file coda.h.

#define CODA_VGET   22

Definition at line 266 of file coda.h.

#define CODA_ZAPDIR   28 /* DOWNCALL */

Definition at line 272 of file coda.h.

#define CODA_ZAPFILE   27 /* DOWNCALL */

Definition at line 271 of file coda.h.

#define CTL_INO   -1

Definition at line 730 of file coda.h.

#define DIRSIZ (   dp)
Value:
((sizeof (struct venus_dirent) - (CODA_MAXNAMLEN+1)) + \
(((dp)->d_namlen+1 + 3) &~ 3))

Definition at line 170 of file coda.h.

#define DOWNCALL (   opcode)    (opcode >= CODA_REPLACE && opcode <= CODA_PURGEFID)

Definition at line 282 of file coda.h.

#define IFTOCDT (   mode)    (((mode) & 0170000) >> 12)

Definition at line 189 of file coda.h.

#define PIOCPARM_MASK   0x0000ffff

Definition at line 714 of file coda.h.

#define VC_MAXDATASIZE   8192

Definition at line 284 of file coda.h.

#define VC_MAXMSGSIZE
Value:
sizeof(union inputArgs)+sizeof(union outputArgs) +\

Definition at line 285 of file coda.h.

Typedef Documentation

typedef short int16_t

Definition at line 124 of file coda.h.

typedef int int32_t

Definition at line 126 of file coda.h.

typedef signed char int8_t

Definition at line 122 of file coda.h.

typedef unsigned short u_int16_t

Definition at line 125 of file coda.h.

typedef unsigned int u_int32_t

Definition at line 127 of file coda.h.

typedef unsigned char u_int8_t

Definition at line 123 of file coda.h.

typedef u_int32_t vgid_t

Definition at line 197 of file coda.h.

typedef u_int32_t vuid_t

Definition at line 196 of file coda.h.

Enumeration Type Documentation

enum coda_vtype
Enumerator:
C_VNON 
C_VREG 
C_VDIR 
C_VBLK 
C_VCHR 
C_VLNK 
C_VSOCK 
C_VFIFO 
C_VBAD 

Definition at line 212 of file coda.h.