nfs.h (335317d29138a9c707d06439585222b6b4853510) nfs.h (45452edc37e1091704ba5e47029652e7b61e2923)
1/*-
2 * Copyright (c) 1989, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 26 unchanged lines hidden (view full) ---

35
36#ifndef _NFSSERVER_NFS_H_
37#define _NFSSERVER_NFS_H_
38
39#ifdef _KERNEL
40#include "opt_nfs.h"
41#endif
42
1/*-
2 * Copyright (c) 1989, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 26 unchanged lines hidden (view full) ---

35
36#ifndef _NFSSERVER_NFS_H_
37#define _NFSSERVER_NFS_H_
38
39#ifdef _KERNEL
40#include "opt_nfs.h"
41#endif
42
43#include <nfs/nfssvc.h>
44
43/*
44 * Tunable constants for nfs
45 */
46
47#define NFS_TICKINTVL 10 /* Desired time for a tick (msec) */
48#define NFS_HZ (hz / nfs_ticks) /* Ticks/sec */
49#define NFS_TIMEO (1 * NFS_HZ) /* Default timeout = 1 second */
50#define NFS_MINTIMEO (1 * NFS_HZ) /* Min timeout to use */

--- 60 unchanged lines hidden (view full) ---

111/*
112 * XXX to allow amd to include nfs.h without nfsproto.h
113 */
114#ifdef NFS_NPROCS
115#include <nfsserver/nfsrvstats.h>
116#endif
117
118/*
45/*
46 * Tunable constants for nfs
47 */
48
49#define NFS_TICKINTVL 10 /* Desired time for a tick (msec) */
50#define NFS_HZ (hz / nfs_ticks) /* Ticks/sec */
51#define NFS_TIMEO (1 * NFS_HZ) /* Default timeout = 1 second */
52#define NFS_MINTIMEO (1 * NFS_HZ) /* Min timeout to use */

--- 60 unchanged lines hidden (view full) ---

113/*
114 * XXX to allow amd to include nfs.h without nfsproto.h
115 */
116#ifdef NFS_NPROCS
117#include <nfsserver/nfsrvstats.h>
118#endif
119
120/*
119 * Flags for nfssvc() system call.
120 */
121#define NFSSVC_OLDNFSD 0x004
122#define NFSSVC_ADDSOCK 0x008
123#define NFSSVC_NFSD 0x010
124
125/*
126 * vfs.nfsrv sysctl(3) identifiers
127 */
128#define NFS_NFSRVSTATS 1 /* struct: struct nfsrvstats */
129#define NFS_NFSPRIVPORT 2 /* int: prohibit nfs to resvports */
130
131#ifdef _KERNEL
132
133extern struct mtx nfsd_mtx;

--- 308 unchanged lines hidden (view full) ---

442int nfsrv_setattr(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
443 struct mbuf **mrq);
444int nfsrv_statfs(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
445 struct mbuf **mrq);
446int nfsrv_symlink(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
447 struct mbuf **mrq);
448int nfsrv_write(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
449 struct mbuf **mrq);
121 * vfs.nfsrv sysctl(3) identifiers
122 */
123#define NFS_NFSRVSTATS 1 /* struct: struct nfsrvstats */
124#define NFS_NFSPRIVPORT 2 /* int: prohibit nfs to resvports */
125
126#ifdef _KERNEL
127
128extern struct mtx nfsd_mtx;

--- 308 unchanged lines hidden (view full) ---

437int nfsrv_setattr(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
438 struct mbuf **mrq);
439int nfsrv_statfs(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
440 struct mbuf **mrq);
441int nfsrv_symlink(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
442 struct mbuf **mrq);
443int nfsrv_write(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
444 struct mbuf **mrq);
445/*
446 * #ifdef _SYS_SYSPROTO_H_ so that it is only defined when sysproto.h
447 * has been included, so that "struct nfssvc_args" is defined.
448 */
449#ifdef _SYS_SYSPROTO_H_
450int nfssvc_nfsserver(struct thread *, struct nfssvc_args *);
451#endif
450#endif /* _KERNEL */
451
452#endif
452#endif /* _KERNEL */
453
454#endif