Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
26aab5c7
Commit
26aab5c7
authored
Nov 08, 2002
by
Chuck Lever
Committed by
Linus Torvalds
Nov 08, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove unused NFS and RPC headers
parent
0e7c39d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
173 deletions
+0
-173
include/linux/nfsiod.h
include/linux/nfsiod.h
+0
-52
include/linux/rpcsock.h
include/linux/rpcsock.h
+0
-121
No files found.
include/linux/nfsiod.h
deleted
100644 → 0
View file @
0e7c39d5
/*
* linux/include/linux/nfsiod.h
*
* Declarations for asynchronous NFS RPC calls.
*
*/
#ifndef _LINUX_NFSIOD_H
#define _LINUX_NFSIOD_H
#include <linux/rpcsock.h>
#include <linux/nfs_fs.h>
#ifdef __KERNEL__
/*
* This is the callback handler for nfsiod requests.
* Note that the callback procedure must NOT sleep.
*/
struct
nfsiod_req
;
typedef
int
(
*
nfsiod_callback_t
)(
int
result
,
struct
nfsiod_req
*
);
/*
* This is the nfsiod request struct.
*/
struct
nfsiod_req
{
struct
nfsiod_req
*
rq_next
;
struct
nfsiod_req
*
rq_prev
;
wait_queue_head_t
rq_wait
;
struct
rpc_ioreq
rq_rpcreq
;
nfsiod_callback_t
rq_callback
;
struct
nfs_server
*
rq_server
;
struct
inode
*
rq_inode
;
struct
page
*
rq_page
;
/* user creds */
uid_t
rq_fsuid
;
gid_t
rq_fsgid
;
int
rq_groups
[
NGROUPS
];
/* retry handling */
int
rq_retries
;
};
struct
nfsiod_req
*
nfsiod_reserve
(
struct
nfs_server
*
);
void
nfsiod_release
(
struct
nfsiod_req
*
);
void
nfsiod_enqueue
(
struct
nfsiod_req
*
);
int
nfsiod
(
void
);
#endif
/* __KERNEL__ */
#endif
/* _LINUX_NFSIOD_H */
include/linux/rpcsock.h
deleted
100644 → 0
View file @
0e7c39d5
/*
* rpcsock.h Declarations for the RPC call interface.
*
* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
*/
#ifndef _LINUX_RPCSOCK_H
#define _LINUX_RPCSOCK_H
/*
* The rpcsock code maintains an estimate on the maximum number of out-
* standing RPC requests, using the congestion avoidance implemented in
* 44BSD. This is basically the Van Jacobson slow start algorithm: If a
* retransmit occurs, the congestion window is halved; otherwise, it is
* incremented by 1/cwnd when a reply is received and a full number of
* requests are outstanding.
*
* Upper procedures may check whether a request would block waiting for
* a free RPC slot by using the RPC_CONGESTED() macro.
*
* Note: on machines with low memory we should probably use a smaller
* MAXREQS value: At 32 outstanding reqs with 8 megs of RAM, fragment
* reassembly will frequently run out of memory.
*/
#define RPC_MAXREQS 32
#define RPC_CWNDSCALE 256
#define RPC_MAXCWND (RPC_MAXREQS * RPC_CWNDSCALE)
/* #define RPC_INITCWND (RPC_MAXCWND / 2) */
#define RPC_INITCWND RPC_CWNDSCALE
#define RPC_CONGESTED(rsock) ((rsock)->cong >= (rsock)->cwnd)
/* RPC reply header size: xid, direction, status, accept_status (verifier
* size computed separately)
*/
#define RPC_HDRSIZE (4 * 4)
/*
* This describes a timeout strategy
*/
struct
rpc_timeout
{
unsigned
long
to_initval
,
to_maxval
,
to_increment
;
int
to_retries
;
char
to_exponential
;
};
/*
* This describes a complete RPC request
*/
struct
rpc_ioreq
{
struct
rpc_wait
*
rq_slot
;
struct
sockaddr
*
rq_addr
;
int
rq_alen
;
struct
iovec
rq_svec
[
UIO_FASTIOV
];
unsigned
int
rq_snr
;
unsigned
long
rq_slen
;
struct
iovec
rq_rvec
[
UIO_FASTIOV
];
unsigned
int
rq_rnr
;
unsigned
long
rq_rlen
;
};
/*
* This is the callback handler for async RPC.
*/
struct
rpc_wait
;
typedef
void
(
*
rpc_callback_fn_t
)(
int
,
struct
rpc_wait
*
,
void
*
);
/*
* Wait information. This struct defines all the state of an RPC
* request currently in flight.
*/
struct
rpc_wait
{
struct
rpc_sock
*
w_sock
;
struct
rpc_wait
*
w_prev
;
struct
rpc_wait
*
w_next
;
struct
rpc_ioreq
*
w_req
;
int
w_result
;
wait_queue_head_t
w_wait
;
rpc_callback_fn_t
w_handler
;
void
*
w_cdata
;
char
w_queued
;
char
w_gotit
;
__u32
w_xid
;
};
struct
rpc_sock
{
struct
file
*
file
;
struct
socket
*
sock
;
struct
sock
*
inet
;
struct
rpc_wait
waiting
[
RPC_MAXREQS
];
unsigned
long
cong
;
unsigned
long
cwnd
;
struct
rpc_wait
*
pending
;
struct
rpc_wait
*
free
;
wait_queue_head_t
backlog
;
wait_queue_head_t
shutwait
;
int
shutdown
;
};
#ifdef __KERNEL__
/* rpc_call: Call synchronously */
int
rpc_call
(
struct
rpc_sock
*
,
struct
rpc_ioreq
*
,
struct
rpc_timeout
*
);
/* These implement asynch calls for nfsiod: Process calls rpc_reserve and
* rpc_transmits, then passes the request to nfsiod, which collects the
* results via rpc_doio
*/
int
rpc_reserve
(
struct
rpc_sock
*
,
struct
rpc_ioreq
*
,
int
);
void
rpc_release
(
struct
rpc_sock
*
,
struct
rpc_ioreq
*
);
int
rpc_transmit
(
struct
rpc_sock
*
,
struct
rpc_ioreq
*
);
int
rpc_doio
(
struct
rpc_sock
*
,
struct
rpc_ioreq
*
,
struct
rpc_timeout
*
,
int
);
struct
rpc_sock
*
rpc_makesock
(
struct
file
*
);
int
rpc_closesock
(
struct
rpc_sock
*
);
#endif
/* __KERNEL__*/
#endif
/* _LINUX_RPCSOCK_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment