2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 /* /usr/andrew/include/vice/ioctl.h
12 Definitions of Venus-specific ioctls for Venus 2.
18 /* The VIOC* constants are defined here. */
23 #include <netinet/in.h>
25 /* some structures used with CM pioctls */
27 /* structs for Get/Set server preferences pioctl
30 struct in_addr server
;
34 struct sprefrequest_33
{
35 unsigned short offset
;
36 unsigned short num_servers
;
39 struct sprefrequest
{ /* new struct for 3.4 */
40 unsigned short offset
;
41 unsigned short num_servers
;
47 unsigned short next_offset
;
48 unsigned short num_servers
;
49 struct spref servers
[1]; /* we overrun this array intentionally... */
54 unsigned short num_servers
;
55 struct spref servers
[1]; /* we overrun this array intentionally... */
57 /* struct for GAG pioctl
60 afs_uint32 showflags
, logflags
, logwritethruflag
, spare
[3];
61 unsigned char spare2
[128];
65 #define logwritethruON 1
69 afs_int32 rx_initReceiveWindow
, rx_maxReceiveWindow
, rx_initSendWindow
,
70 rx_maxSendWindow
, rxi_nSendFrags
, rxi_nRecvFrags
, rxi_OrphanFragSize
;
71 afs_int32 rx_maxReceiveSize
, rx_MyMaxSendSize
;
75 /* struct for checkservers */
90 /* CM inititialization parameters. What CM actually used after calculations
91 * based on passed in arguments.
93 #define CMI_VERSION 1 /* increment when adding new fields. */
94 struct cm_initparams
{
99 int cmi_nVolumeCaches
;
100 int cmi_firstChunkSize
;
101 int cmi_otherChunkSize
;
102 int cmi_cacheSize
; /* The original cache size, in 1K blocks. */
103 unsigned cmi_setTime
:1;
104 unsigned cmi_memCache
:1;
105 int spare
[16 - 9]; /* size of struct is 16 * 4 = 64 bytes */
108 #endif /* !defined(UKERNEL) */
110 #if defined(AFS_CACHE_BYPASS)
111 /* Uncoordinated 'O' pioctls */
112 #define VIOC_SETBYPASS_THRESH _OVICEIOCTL(2) /* cache-bypass size thresh */
115 #endif /* AFS_VENUS_H */