Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
afs.h File Reference
#include <linux/in.h>

Go to the source code of this file.

Data Structures

struct  afs_fid
 
struct  afs_callback
 
struct  afs_volume_info
 
struct  afs_file_status
 
struct  afs_store_status
 
struct  afs_volsync
 
struct  afs_volume_status
 

Macros

#define AFS_MAXCELLNAME   64 /* maximum length of a cell name */
 
#define AFS_MAXVOLNAME   64 /* maximum length of a volume name */
 
#define AFSNAMEMAX   256 /* maximum length of a filename plus NUL */
 
#define AFSPATHMAX   1024 /* maximum length of a pathname plus NUL */
 
#define AFSOPAQUEMAX   1024 /* maximum length of an opaque field */
 
#define AFS_LOCKWAIT   (5 * 60) /* time until a lock times out (seconds) */
 
#define AFSCBMAX   50 /* maximum callbacks transferred per bulk op */
 
#define AFS_ACE_READ   0x00000001U /* - permission to read a file/dir */
 
#define AFS_ACE_WRITE   0x00000002U /* - permission to write/chmod a file */
 
#define AFS_ACE_INSERT   0x00000004U /* - permission to create dirent in a dir */
 
#define AFS_ACE_LOOKUP   0x00000008U /* - permission to lookup a file/dir in a dir */
 
#define AFS_ACE_DELETE   0x00000010U /* - permission to delete a dirent from a dir */
 
#define AFS_ACE_LOCK   0x00000020U /* - permission to lock a file */
 
#define AFS_ACE_ADMINISTER   0x00000040U /* - permission to change ACL */
 
#define AFS_ACE_USER_A   0x01000000U /* - 'A' user-defined permission */
 
#define AFS_ACE_USER_B   0x02000000U /* - 'B' user-defined permission */
 
#define AFS_ACE_USER_C   0x04000000U /* - 'C' user-defined permission */
 
#define AFS_ACE_USER_D   0x08000000U /* - 'D' user-defined permission */
 
#define AFS_ACE_USER_E   0x10000000U /* - 'E' user-defined permission */
 
#define AFS_ACE_USER_F   0x20000000U /* - 'F' user-defined permission */
 
#define AFS_ACE_USER_G   0x40000000U /* - 'G' user-defined permission */
 
#define AFS_ACE_USER_H   0x80000000U /* - 'H' user-defined permission */
 
#define AFS_FSTATUS_VERSION   1
 
#define AFS_SET_MTIME   0x01 /* set the mtime */
 
#define AFS_SET_OWNER   0x02 /* set the owner ID */
 
#define AFS_SET_GROUP   0x04 /* set the group ID (unsupported?) */
 
#define AFS_SET_MODE   0x08 /* set the UNIX mode */
 
#define AFS_SET_SEG_SIZE   0x10 /* set the segment size (unsupported) */
 
#define AFS_BLOCK_SIZE   1024
 

Typedefs

typedef unsigned afs_volid_t
 
typedef unsigned afs_vnodeid_t
 
typedef unsigned long long afs_dataversion_t
 
typedef u32 afs_access_t
 

Enumerations

enum  __attribute__ {
  DAC960_SenseKey_NoSense = 0x0, DAC960_SenseKey_RecoveredError = 0x1, DAC960_SenseKey_NotReady = 0x2, DAC960_SenseKey_MediumError = 0x3,
  DAC960_SenseKey_HardwareError = 0x4, DAC960_SenseKey_IllegalRequest = 0x5, DAC960_SenseKey_UnitAttention = 0x6, DAC960_SenseKey_DataProtect = 0x7,
  DAC960_SenseKey_BlankCheck = 0x8, DAC960_SenseKey_VendorSpecific = 0x9, DAC960_SenseKey_CopyAborted = 0xA, DAC960_SenseKey_AbortedCommand = 0xB,
  DAC960_SenseKey_Equal = 0xC, DAC960_SenseKey_VolumeOverflow = 0xD, DAC960_SenseKey_Miscompare = 0xE, DAC960_SenseKey_Reserved = 0xF,
  DAC960_V1_ReadExtended = 0x33, DAC960_V1_WriteExtended = 0x34, DAC960_V1_ReadAheadExtended = 0x35, DAC960_V1_ReadExtendedWithScatterGather = 0xB3,
  DAC960_V1_WriteExtendedWithScatterGather = 0xB4, DAC960_V1_Read = 0x36, DAC960_V1_ReadWithScatterGather = 0xB6, DAC960_V1_Write = 0x37,
  DAC960_V1_WriteWithScatterGather = 0xB7, DAC960_V1_DCDB = 0x04, DAC960_V1_DCDBWithScatterGather = 0x84, DAC960_V1_Flush = 0x0A,
  DAC960_V1_Enquiry = 0x53, DAC960_V1_Enquiry2 = 0x1C, DAC960_V1_GetLogicalDriveElement = 0x55, DAC960_V1_GetLogicalDriveInformation = 0x19,
  DAC960_V1_IOPortRead = 0x39, DAC960_V1_IOPortWrite = 0x3A, DAC960_V1_GetSDStats = 0x3E, DAC960_V1_GetPDStats = 0x3F,
  DAC960_V1_PerformEventLogOperation = 0x72, DAC960_V1_StartDevice = 0x10, DAC960_V1_GetDeviceState = 0x50, DAC960_V1_StopChannel = 0x13,
  DAC960_V1_StartChannel = 0x12, DAC960_V1_ResetChannel = 0x1A, DAC960_V1_Rebuild = 0x09, DAC960_V1_RebuildAsync = 0x16,
  DAC960_V1_CheckConsistency = 0x0F, DAC960_V1_CheckConsistencyAsync = 0x1E, DAC960_V1_RebuildStat = 0x0C, DAC960_V1_GetRebuildProgress = 0x27,
  DAC960_V1_RebuildControl = 0x1F, DAC960_V1_ReadBadBlockTable = 0x0B, DAC960_V1_ReadBadDataTable = 0x25, DAC960_V1_ClearBadDataTable = 0x26,
  DAC960_V1_GetErrorTable = 0x17, DAC960_V1_AddCapacityAsync = 0x2A, DAC960_V1_BackgroundInitializationControl = 0x2B, DAC960_V1_ReadConfig2 = 0x3D,
  DAC960_V1_WriteConfig2 = 0x3C, DAC960_V1_ReadConfigurationOnDisk = 0x4A, DAC960_V1_WriteConfigurationOnDisk = 0x4B, DAC960_V1_ReadConfiguration = 0x4E,
  DAC960_V1_ReadBackupConfiguration = 0x4D, DAC960_V1_WriteConfiguration = 0x4F, DAC960_V1_AddConfiguration = 0x4C, DAC960_V1_ReadConfigurationLabel = 0x48,
  DAC960_V1_WriteConfigurationLabel = 0x49, DAC960_V1_LoadImage = 0x20, DAC960_V1_StoreImage = 0x21, DAC960_V1_ProgramImage = 0x22,
  DAC960_V1_SetDiagnosticMode = 0x31, DAC960_V1_RunDiagnostic = 0x32, DAC960_V1_GetSubsystemData = 0x70, DAC960_V1_SetSubsystemParameters = 0x71,
  DAC960_V1_Enquiry_Old = 0x05, DAC960_V1_GetDeviceState_Old = 0x14, DAC960_V1_Read_Old = 0x02, DAC960_V1_Write_Old = 0x03,
  DAC960_V1_ReadWithScatterGather_Old = 0x82, DAC960_V1_WriteWithScatterGather_Old = 0x83, DAC960_V1_LogicalDrive_Online = 0x03, DAC960_V1_LogicalDrive_Critical = 0x04,
  DAC960_V1_LogicalDrive_Offline = 0xFF, DAC960_V1_GetEventLogEntry = 0x00, DAC960_V1_Device_Dead = 0x00, DAC960_V1_Device_WriteOnly = 0x02,
  DAC960_V1_Device_Online = 0x03, DAC960_V1_Device_Standby = 0x10, DAC960_V2_MemCopy = 0x01, DAC960_V2_SCSI_10_Passthru = 0x02,
  DAC960_V2_SCSI_255_Passthru = 0x03, DAC960_V2_SCSI_10 = 0x04, DAC960_V2_SCSI_256 = 0x05, DAC960_V2_IOCTL = 0x20,
  DAC960_V2_GetControllerInfo = 0x01, DAC960_V2_GetLogicalDeviceInfoValid = 0x03, DAC960_V2_GetPhysicalDeviceInfoValid = 0x05, DAC960_V2_GetHealthStatus = 0x11,
  DAC960_V2_GetEvent = 0x15, DAC960_V2_StartDiscovery = 0x81, DAC960_V2_SetDeviceState = 0x82, DAC960_V2_RebuildDeviceStart = 0x88,
  DAC960_V2_RebuildDeviceStop = 0x89, DAC960_V2_ConsistencyCheckStart = 0x8C, DAC960_V2_ConsistencyCheckStop = 0x8D, DAC960_V2_SetMemoryMailbox = 0x8E,
  DAC960_V2_PauseDevice = 0x92, DAC960_V2_TranslatePhysicalToLogicalDevice = 0xC5, DAC960_V2_ProcessorType_i960CA = 0x01, DAC960_V2_ProcessorType_i960RD = 0x02,
  DAC960_V2_ProcessorType_i960RN = 0x03, DAC960_V2_ProcessorType_i960RP = 0x04, DAC960_V2_ProcessorType_NorthBay = 0x05, DAC960_V2_ProcessorType_StrongArm = 0x06,
  DAC960_V2_ProcessorType_i960RM = 0x07, DAC960_V2_LogicalDevice_Online = 0x01, DAC960_V2_LogicalDevice_Offline = 0x08, DAC960_V2_LogicalDevice_Critical = 0x09,
  DAC960_V2_Device_Unconfigured = 0x00, DAC960_V2_Device_Online = 0x01, DAC960_V2_Device_Rebuild = 0x03, DAC960_V2_Device_Missing = 0x04,
  DAC960_V2_Device_Critical = 0x05, DAC960_V2_Device_Dead = 0x08, DAC960_V2_Device_SuspectedDead = 0x0C, DAC960_V2_Device_CommandedOffline = 0x10,
  DAC960_V2_Device_Standby = 0x21, DAC960_V2_Device_InvalidState = 0xFF, DAC960_V2_Physical_Device = 0x00, DAC960_V2_RAID_Device = 0x01,
  DAC960_V2_Physical_Channel = 0x02, DAC960_V2_RAID_Channel = 0x03, DAC960_V2_Physical_Controller = 0x04, DAC960_V2_RAID_Controller = 0x05,
  DAC960_V2_Configuration_Group = 0x10, DAC960_V2_Enclosure = 0x11, AFSVL_RWVOL, AFSVL_ROVOL,
  AFSVL_BACKVOL, AFS_VL_NEW, AFS_VL_CREATING, AFS_VL_VALID,
  AFS_VL_NO_VOLUME, AFS_VL_UPDATING, AFS_VL_VOLUME_DELETED, AFS_VL_UNCERTAIN
}
 
enum  afs_file_type_t { AFS_FTYPE_INVALID = 0, AFS_FTYPE_FILE = 1, AFS_FTYPE_DIR = 2, AFS_FTYPE_SYMLINK = 3 }
 
enum  afs_lock_type_t { AFS_LOCK_READ = 0, AFS_LOCK_WRITE = 1 }
 
enum  afs_callback_type_t { AFSCM_CB_UNTYPED = 0, AFSCM_CB_EXCLUSIVE = 1, AFSCM_CB_SHARED = 2, AFSCM_CB_DROPPED = 3 }
 

Macro Definition Documentation

#define AFS_ACE_ADMINISTER   0x00000040U /* - permission to change ACL */

Definition at line 100 of file afs.h.

#define AFS_ACE_DELETE   0x00000010U /* - permission to delete a dirent from a dir */

Definition at line 98 of file afs.h.

#define AFS_ACE_INSERT   0x00000004U /* - permission to create dirent in a dir */

Definition at line 96 of file afs.h.

#define AFS_ACE_LOCK   0x00000020U /* - permission to lock a file */

Definition at line 99 of file afs.h.

#define AFS_ACE_LOOKUP   0x00000008U /* - permission to lookup a file/dir in a dir */

Definition at line 97 of file afs.h.

#define AFS_ACE_READ   0x00000001U /* - permission to read a file/dir */

Definition at line 94 of file afs.h.

#define AFS_ACE_USER_A   0x01000000U /* - 'A' user-defined permission */

Definition at line 101 of file afs.h.

#define AFS_ACE_USER_B   0x02000000U /* - 'B' user-defined permission */

Definition at line 102 of file afs.h.

#define AFS_ACE_USER_C   0x04000000U /* - 'C' user-defined permission */

Definition at line 103 of file afs.h.

#define AFS_ACE_USER_D   0x08000000U /* - 'D' user-defined permission */

Definition at line 104 of file afs.h.

#define AFS_ACE_USER_E   0x10000000U /* - 'E' user-defined permission */

Definition at line 105 of file afs.h.

#define AFS_ACE_USER_F   0x20000000U /* - 'F' user-defined permission */

Definition at line 106 of file afs.h.

#define AFS_ACE_USER_G   0x40000000U /* - 'G' user-defined permission */

Definition at line 107 of file afs.h.

#define AFS_ACE_USER_H   0x80000000U /* - 'H' user-defined permission */

Definition at line 108 of file afs.h.

#define AFS_ACE_WRITE   0x00000002U /* - permission to write/chmod a file */

Definition at line 95 of file afs.h.

#define AFS_BLOCK_SIZE   1024

Definition at line 175 of file afs.h.

#define AFS_FSTATUS_VERSION   1

Definition at line 115 of file afs.h.

#define AFS_LOCKWAIT   (5 * 60) /* time until a lock times out (seconds) */

Definition at line 45 of file afs.h.

#define AFS_MAXCELLNAME   64 /* maximum length of a cell name */

Definition at line 17 of file afs.h.

#define AFS_MAXVOLNAME   64 /* maximum length of a volume name */

Definition at line 18 of file afs.h.

#define AFS_SET_GROUP   0x04 /* set the group ID (unsupported?) */

Definition at line 146 of file afs.h.

#define AFS_SET_MODE   0x08 /* set the UNIX mode */

Definition at line 147 of file afs.h.

#define AFS_SET_MTIME   0x01 /* set the mtime */

Definition at line 144 of file afs.h.

#define AFS_SET_OWNER   0x02 /* set the owner ID */

Definition at line 145 of file afs.h.

#define AFS_SET_SEG_SIZE   0x10 /* set the segment size (unsupported) */

Definition at line 148 of file afs.h.

#define AFSCBMAX   50 /* maximum callbacks transferred per bulk op */

Definition at line 73 of file afs.h.

#define AFSNAMEMAX   256 /* maximum length of a filename plus NUL */

Definition at line 19 of file afs.h.

#define AFSOPAQUEMAX   1024 /* maximum length of an opaque field */

Definition at line 21 of file afs.h.

#define AFSPATHMAX   1024 /* maximum length of a pathname plus NUL */

Definition at line 20 of file afs.h.

Typedef Documentation

typedef u32 afs_access_t

Definition at line 93 of file afs.h.

typedef unsigned long long afs_dataversion_t

Definition at line 25 of file afs.h.

typedef unsigned afs_vnodeid_t

Definition at line 24 of file afs.h.

typedef unsigned afs_volid_t

Definition at line 23 of file afs.h.

Enumeration Type Documentation

Enumerator:
DAC960_SenseKey_NoSense 
DAC960_SenseKey_RecoveredError 
DAC960_SenseKey_NotReady 
DAC960_SenseKey_MediumError 
DAC960_SenseKey_HardwareError 
DAC960_SenseKey_IllegalRequest 
DAC960_SenseKey_UnitAttention 
DAC960_SenseKey_DataProtect 
DAC960_SenseKey_BlankCheck 
DAC960_SenseKey_VendorSpecific 
DAC960_SenseKey_CopyAborted 
DAC960_SenseKey_AbortedCommand 
DAC960_SenseKey_Equal 
DAC960_SenseKey_VolumeOverflow 
DAC960_SenseKey_Miscompare 
DAC960_SenseKey_Reserved 
DAC960_V1_ReadExtended 
DAC960_V1_WriteExtended 
DAC960_V1_ReadAheadExtended 
DAC960_V1_ReadExtendedWithScatterGather 
DAC960_V1_WriteExtendedWithScatterGather 
DAC960_V1_Read 
DAC960_V1_ReadWithScatterGather 
DAC960_V1_Write 
DAC960_V1_WriteWithScatterGather 
DAC960_V1_DCDB 
DAC960_V1_DCDBWithScatterGather 
DAC960_V1_Flush 
DAC960_V1_Enquiry 
DAC960_V1_Enquiry2 
DAC960_V1_GetLogicalDriveElement 
DAC960_V1_GetLogicalDriveInformation 
DAC960_V1_IOPortRead 
DAC960_V1_IOPortWrite 
DAC960_V1_GetSDStats 
DAC960_V1_GetPDStats 
DAC960_V1_PerformEventLogOperation 
DAC960_V1_StartDevice 
DAC960_V1_GetDeviceState 
DAC960_V1_StopChannel 
DAC960_V1_StartChannel 
DAC960_V1_ResetChannel 
DAC960_V1_Rebuild 
DAC960_V1_RebuildAsync 
DAC960_V1_CheckConsistency 
DAC960_V1_CheckConsistencyAsync 
DAC960_V1_RebuildStat 
DAC960_V1_GetRebuildProgress 
DAC960_V1_RebuildControl 
DAC960_V1_ReadBadBlockTable 
DAC960_V1_ReadBadDataTable 
DAC960_V1_ClearBadDataTable 
DAC960_V1_GetErrorTable 
DAC960_V1_AddCapacityAsync 
DAC960_V1_BackgroundInitializationControl 
DAC960_V1_ReadConfig2 
DAC960_V1_WriteConfig2 
DAC960_V1_ReadConfigurationOnDisk 
DAC960_V1_WriteConfigurationOnDisk 
DAC960_V1_ReadConfiguration 
DAC960_V1_ReadBackupConfiguration 
DAC960_V1_WriteConfiguration 
DAC960_V1_AddConfiguration 
DAC960_V1_ReadConfigurationLabel 
DAC960_V1_WriteConfigurationLabel 
DAC960_V1_LoadImage 
DAC960_V1_StoreImage 
DAC960_V1_ProgramImage 
DAC960_V1_SetDiagnosticMode 
DAC960_V1_RunDiagnostic 
DAC960_V1_GetSubsystemData 
DAC960_V1_SetSubsystemParameters 
DAC960_V1_Enquiry_Old 
DAC960_V1_GetDeviceState_Old 
DAC960_V1_Read_Old 
DAC960_V1_Write_Old 
DAC960_V1_ReadWithScatterGather_Old 
DAC960_V1_WriteWithScatterGather_Old 
DAC960_V1_LogicalDrive_Online 
DAC960_V1_LogicalDrive_Critical 
DAC960_V1_LogicalDrive_Offline 
DAC960_V1_GetEventLogEntry 
DAC960_V1_Device_Dead 
DAC960_V1_Device_WriteOnly 
DAC960_V1_Device_Online 
DAC960_V1_Device_Standby 
DAC960_V2_MemCopy 
DAC960_V2_SCSI_10_Passthru 
DAC960_V2_SCSI_255_Passthru 
DAC960_V2_SCSI_10 
DAC960_V2_SCSI_256 
DAC960_V2_IOCTL 
DAC960_V2_GetControllerInfo 
DAC960_V2_GetLogicalDeviceInfoValid 
DAC960_V2_GetPhysicalDeviceInfoValid 
DAC960_V2_GetHealthStatus 
DAC960_V2_GetEvent 
DAC960_V2_StartDiscovery 
DAC960_V2_SetDeviceState 
DAC960_V2_RebuildDeviceStart 
DAC960_V2_RebuildDeviceStop 
DAC960_V2_ConsistencyCheckStart 
DAC960_V2_ConsistencyCheckStop 
DAC960_V2_SetMemoryMailbox 
DAC960_V2_PauseDevice 
DAC960_V2_TranslatePhysicalToLogicalDevice 
DAC960_V2_ProcessorType_i960CA 
DAC960_V2_ProcessorType_i960RD 
DAC960_V2_ProcessorType_i960RN 
DAC960_V2_ProcessorType_i960RP 
DAC960_V2_ProcessorType_NorthBay 
DAC960_V2_ProcessorType_StrongArm 
DAC960_V2_ProcessorType_i960RM 
DAC960_V2_LogicalDevice_Online 
DAC960_V2_LogicalDevice_Offline 
DAC960_V2_LogicalDevice_Critical 
DAC960_V2_Device_Unconfigured 
DAC960_V2_Device_Online 
DAC960_V2_Device_Rebuild 
DAC960_V2_Device_Missing 
DAC960_V2_Device_Critical 
DAC960_V2_Device_Dead 
DAC960_V2_Device_SuspectedDead 
DAC960_V2_Device_CommandedOffline 
DAC960_V2_Device_Standby 
DAC960_V2_Device_InvalidState 
DAC960_V2_Physical_Device 
DAC960_V2_RAID_Device 
DAC960_V2_Physical_Channel 
DAC960_V2_RAID_Channel 
DAC960_V2_Physical_Controller 
DAC960_V2_RAID_Controller 
DAC960_V2_Configuration_Group 
DAC960_V2_Enclosure 
AFSVL_RWVOL 
AFSVL_ROVOL 
AFSVL_BACKVOL 
AFS_VL_NEW 
AFS_VL_CREATING 
AFS_VL_VALID 
AFS_VL_NO_VOLUME 
AFS_VL_UPDATING 
AFS_VL_VOLUME_DELETED 
AFS_VL_UNCERTAIN 

Definition at line 27 of file afs.h.

Enumerator:
AFSCM_CB_UNTYPED 
AFSCM_CB_EXCLUSIVE 
AFSCM_CB_SHARED 
AFSCM_CB_DROPPED 

Definition at line 59 of file afs.h.

Enumerator:
AFS_FTYPE_INVALID 
AFS_FTYPE_FILE 
AFS_FTYPE_DIR 
AFS_FTYPE_SYMLINK 

Definition at line 33 of file afs.h.

Enumerator:
AFS_LOCK_READ 
AFS_LOCK_WRITE 

Definition at line 40 of file afs.h.