afs/include/rxrpc types.h,1.1.1.1,1.2 rxrpc.h,1.1.1.1,1.2
packet.h,1.1.1.1,1.2 message.h,1.1.1.1,1.2 connection.h,1.1.1.1,1.2
call.h,1.3,1.4
dwh at infradead.org
dwh at infradead.org
Tue Aug 12 19:04:05 BST 2003
- Previous message: afs/net/rxrpc transport.c,1.4,1.5 sysctl.c,1.4,1.5 proc.c,1.5,1.6
peer.c,1.5,1.6 main.c,1.4,1.5 krxtimod.c,1.6,1.7 krxsecd.c,1.7,1.8
krxiod.c,1.6,1.7 internal.h,1.8,1.9 connection.c,1.4,1.5call.c,1.6,1.7
- Next message: afs/net/rxrpc transport.c,1.5,1.6 peer.c,1.6,1.7 main.c,1.5,1.6
connection.c,1.5,1.6 call.c,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/afs/include/rxrpc
In directory phoenix.infradead.org:/tmp/cvs-serv893/include/rxrpc
Modified Files:
types.h rxrpc.h packet.h message.h connection.h call.h
Log Message:
mangled the coding style towards Hellwig compliance
Index: types.h
===================================================================
RCS file: /home/cvs/afs/include/rxrpc/types.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- types.h 19 Jun 2002 13:33:55 -0000 1.1.1.1
+++ types.h 12 Aug 2003 17:04:03 -0000 1.2
@@ -19,8 +19,8 @@
#include <linux/spinlock.h>
#include <asm/atomic.h>
-typedef unsigned rxrpc_seq_t; /* Rx message sequence number */
-typedef unsigned rxrpc_serial_t; /* Rx message serial number */
+typedef u_int32_t rxrpc_seq_t; /* Rx message sequence number */
+typedef u_int32_t rxrpc_serial_t; /* Rx message serial number */
struct rxrpc_call;
struct rxrpc_connection;
Index: rxrpc.h
===================================================================
RCS file: /home/cvs/afs/include/rxrpc/rxrpc.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- rxrpc.h 19 Jun 2002 13:33:55 -0000 1.1.1.1
+++ rxrpc.h 12 Aug 2003 17:04:03 -0000 1.2
@@ -14,7 +14,7 @@
#ifdef __KERNEL__
-extern u32 rxrpc_epoch;
+extern u_int32_t rxrpc_epoch;
extern int rxrpc_ktrace;
extern int rxrpc_kdebug;
Index: packet.h
===================================================================
RCS file: /home/cvs/afs/include/rxrpc/packet.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- packet.h 19 Jun 2002 13:33:55 -0000 1.1.1.1
+++ packet.h 12 Aug 2003 17:04:03 -0000 1.2
@@ -27,21 +27,21 @@
*/
struct rxrpc_header
{
- u32 epoch; /* client boot timestamp */
+ u_int32_t epoch; /* client boot timestamp */
- u32 cid; /* connection and channel ID */
+ u_int32_t cid; /* connection and channel ID */
#define RXRPC_MAXCALLS 4 /* max active calls per conn */
#define RXRPC_CHANNELMASK (RXRPC_MAXCALLS-1) /* mask for channel ID */
#define RXRPC_CIDMASK (~RXRPC_CHANNELMASK) /* mask for connection ID */
#define RXRPC_CIDSHIFT 2 /* shift for connection ID */
- u32 callNumber; /* call ID (0 for connection-level packets) */
+ u_int32_t callNumber; /* call ID (0 for connection-level packets) */
#define RXRPC_PROCESS_MAXCALLS (1<<2) /* maximum number of active calls per conn (power of 2) */
- u32 seq; /* sequence number of pkt in call stream */
- u32 serial; /* serial number of pkt sent to network */
+ u_int32_t seq; /* sequence number of pkt in call stream */
+ u_int32_t serial; /* serial number of pkt sent to network */
- u8 type; /* packet type */
+ u_int8_t type; /* packet type */
#define RXRPC_PACKET_TYPE_DATA 1 /* data */
#define RXRPC_PACKET_TYPE_ACK 2 /* ACK */
#define RXRPC_PACKET_TYPE_BUSY 3 /* call reject */
@@ -52,7 +52,7 @@
#define RXRPC_PACKET_TYPE_DEBUG 8 /* debug info request */
#define RXRPC_N_PACKET_TYPES 9 /* number of packet types (incl type 0) */
- u8 flags; /* packet flags */
+ u_int8_t flags; /* packet flags */
#define RXRPC_CLIENT_INITIATED 0x01 /* signifies a packet generated by a client */
#define RXRPC_REQUEST_ACK 0x02 /* request an unconditional ACK of this packet */
#define RXRPC_LAST_PACKET 0x04 /* the last packet from this side for this call */
@@ -60,10 +60,10 @@
#define RXRPC_JUMBO_PACKET 0x20 /* [DATA] this is a jumbo packet */
#define RXRPC_SLOW_START_OK 0x20 /* [ACK] slow start supported */
- u8 userStatus; /* app-layer defined status */
- u8 securityIndex; /* security protocol ID */
- u16 _rsvd; /* reserved (used by kerberos security as cksum) */
- u16 serviceId; /* service ID */
+ u_int8_t userStatus; /* app-layer defined status */
+ u_int8_t securityIndex; /* security protocol ID */
+ u_int16_t _rsvd; /* reserved (used by kerberos security as cksum) */
+ u_int16_t serviceId; /* service ID */
} __attribute__((packed));
@@ -83,9 +83,9 @@
*/
struct rxrpc_jumbo_header
{
- u8 flags; /* packet flags (as per rxrpc_header) */
- u8 pad;
- u16 _rsvd; /* reserved (used by kerberos security as cksum) */
+ u_int8_t flags; /* packet flags (as per rxrpc_header) */
+ u_int8_t pad;
+ u_int16_t _rsvd; /* reserved (used by kerberos security as cksum) */
};
#define RXRPC_JUMBO_DATALEN 1412 /* non-terminal jumbo packet data length */
@@ -97,13 +97,14 @@
*/
struct rxrpc_ackpacket
{
- u16 bufferSpace; /* number of packet buffers available */
- u16 maxSkew; /* diff between serno being ACK'd and highest serial no received */
- u32 firstPacket; /* sequence no of first ACK'd packet in attached list */
- u32 previousPacket; /* sequence no of previous packet received */
- u32 serial; /* serial no of packet that prompted this ACK */
+ u_int16_t bufferSpace; /* number of packet buffers available */
+ u_int16_t maxSkew; /* diff between serno being ACK'd and highest serial no
+ * received */
+ u_int32_t firstPacket; /* sequence no of first ACK'd packet in attached list */
+ u_int32_t previousPacket; /* sequence no of previous packet received */
+ u_int32_t serial; /* serial no of packet that prompted this ACK */
- u8 reason; /* reason for ACK */
+ u_int8_t reason; /* reason for ACK */
#define RXRPC_ACK_REQUESTED 1 /* ACK was requested on packet */
#define RXRPC_ACK_DUPLICATE 2 /* duplicate packet received */
#define RXRPC_ACK_OUT_OF_SEQUENCE 3 /* out of sequence packet received */
@@ -114,10 +115,10 @@
#define RXRPC_ACK_DELAY 8 /* nothing happened since received packet */
#define RXRPC_ACK_IDLE 9 /* ACK due to fully received ACK window */
- u8 nAcks; /* number of ACKs */
+ u_int8_t nAcks; /* number of ACKs */
#define RXRPC_MAXACKS 255
- u8 acks[0]; /* list of ACK/NAKs */
+ u_int8_t acks[0]; /* list of ACK/NAKs */
#define RXRPC_ACK_TYPE_NACK 0
#define RXRPC_ACK_TYPE_ACK 1
Index: message.h
===================================================================
RCS file: /home/cvs/afs/include/rxrpc/message.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- message.h 19 Jun 2002 13:33:55 -0000 1.1.1.1
+++ message.h 12 Aug 2003 17:04:03 -0000 1.2
@@ -9,8 +9,8 @@
* 2 of the License, or (at your option) any later version.
*/
-#ifndef _H_3AD3363A_3A9C_11D6_83D8_0002B3163499
-#define _H_3AD3363A_3A9C_11D6_83D8_0002B3163499
+#ifndef _LINUX_RXRPC_MESSAGE_H
+#define _LINUX_RXRPC_MESSAGE_H
#include <rxrpc/packet.h>
@@ -61,7 +61,7 @@
extern int rxrpc_conn_newmsg(struct rxrpc_connection *conn,
struct rxrpc_call *call,
- u8 type,
+ u_int8_t type,
int count,
struct iovec diov[],
int alloc_flags,
@@ -69,4 +69,4 @@
extern int rxrpc_conn_sendmsg(struct rxrpc_connection *conn, struct rxrpc_message *msg);
-#endif /* _H_3AD3363A_3A9C_11D6_83D8_0002B3163499 */
+#endif /* _LINUX_RXRPC_MESSAGE_H */
Index: connection.h
===================================================================
RCS file: /home/cvs/afs/include/rxrpc/connection.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- connection.h 19 Jun 2002 13:33:55 -0000 1.1.1.1
+++ connection.h 12 Aug 2003 17:04:03 -0000 1.2
@@ -44,18 +44,18 @@
rxrpc_serial_t serial_counter; /* packet serial number counter */
/* the following should all be in net order */
- u32 in_epoch; /* peer's epoch */
- u32 out_epoch; /* my epoch */
- u32 conn_id; /* connection ID, appropriately shifted */
- u16 service_id; /* service ID */
- u8 security_ix; /* security ID */
- u8 in_clientflag; /* RXRPC_CLIENT_INITIATED if we are server */
- u8 out_clientflag; /* RXRPC_CLIENT_INITIATED if we are client */
+ u_int32_t in_epoch; /* peer's epoch */
+ u_int32_t out_epoch; /* my epoch */
+ u_int32_t conn_id; /* connection ID, appropriately shifted */
+ u_int16_t service_id; /* service ID */
+ u_int8_t security_ix; /* security ID */
+ u_int8_t in_clientflag; /* RXRPC_CLIENT_INITIATED if we are server */
+ u_int8_t out_clientflag; /* RXRPC_CLIENT_INITIATED if we are client */
};
extern int rxrpc_create_connection(struct rxrpc_transport *trans,
- u16 port,
- u32 addr,
+ u_int16_t port,
+ u_int32_t addr,
unsigned short service_id,
void *security,
struct rxrpc_connection **_conn);
Index: call.h
===================================================================
RCS file: /home/cvs/afs/include/rxrpc/call.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- call.h 16 Oct 2002 11:59:44 -0000 1.3
+++ call.h 12 Aug 2003 17:04:03 -0000 1.4
@@ -67,8 +67,8 @@
wait_queue_head_t waitq; /* wait queue for events to happen */
struct list_head link; /* general internal list link */
struct list_head call_link; /* master call list link */
- u32 chan_ix; /* connection channel index (net order) */
- u32 call_id; /* call ID on connection (net order) */
+ u_int32_t chan_ix; /* connection channel index (net order) */
+ u_int32_t call_id; /* call ID on connection (net order) */
unsigned long cjif; /* jiffies at call creation */
unsigned long flags; /* control flags */
#define RXRPC_CALL_ACKS_TIMO 0x00000001 /* ACKS timeout reached */
@@ -103,7 +103,7 @@
char ackr_dfr_perm; /* request for deferred ACKs permitted */
rxrpc_seq_t ackr_dfr_seq; /* seqno for deferred ACK */
struct rxrpc_ackpacket ackr; /* pending normal ACK packet */
- u8 ackr_array[RXRPC_CALL_ACK_WINDOW_SIZE]; /* ACK records */
+ u_int8_t ackr_array[RXRPC_CALL_ACK_WINDOW_SIZE]; /* ACK records */
/* presentation layer */
char app_last_rcv; /* T if received last packet from remote end */
@@ -131,14 +131,14 @@
struct list_head app_attn_link; /* application attention list linkage */
size_t app_mark; /* trigger callback when app_ready_qty>=app_mark */
char app_async_read; /* T if in async-read mode */
- u8 *app_read_buf; /* application async read buffer (app_mark size) */
- u8 *app_scr_alloc; /* application scratch allocation pointer */
+ u_int8_t *app_read_buf; /* application async read buffer (app_mark size) */
+ u_int8_t *app_scr_alloc; /* application scratch allocation pointer */
void *app_scr_ptr; /* application pointer into scratch buffer */
#define RXRPC_APP_MARK_EOF 0xFFFFFFFFU /* mark at end of input */
/* application scratch buffer */
- u8 app_scratch[0] __attribute__((aligned(sizeof(long))));
+ u_int8_t app_scratch[0] __attribute__((aligned(sizeof(long))));
};
#define RXRPC_CALL_SCRATCH_SIZE (PAGE_SIZE - sizeof(struct rxrpc_call))
@@ -206,7 +206,7 @@
extern int rxrpc_call_write_data(struct rxrpc_call *call,
size_t sioc,
struct iovec siov[],
- u8 rxhdr_flags,
+ u_int8_t rxhdr_flags,
int alloc_flags,
int dup_data,
size_t *size_sent);
- Previous message: afs/net/rxrpc transport.c,1.4,1.5 sysctl.c,1.4,1.5 proc.c,1.5,1.6
peer.c,1.5,1.6 main.c,1.4,1.5 krxtimod.c,1.6,1.7 krxsecd.c,1.7,1.8
krxiod.c,1.6,1.7 internal.h,1.8,1.9 connection.c,1.4,1.5call.c,1.6,1.7
- Next message: afs/net/rxrpc transport.c,1.5,1.6 peer.c,1.6,1.7 main.c,1.5,1.6
connection.c,1.5,1.6 call.c,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-afs-cvs
mailing list