1/* 2 * Copyright (c) 1989, 1993 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 --- 38 unchanged lines hidden (view full) --- 47#include <sys/systm.h> 48#include <sys/kernel.h> 49#include <sys/mount.h> 50#include <sys/vnode.h> 51#include <sys/namei.h> 52#include <sys/mbuf.h> 53#include <sys/socket.h> 54#include <sys/stat.h> |
55#ifdef VFS_LKM 56#include <sys/sysent.h> 57#include <sys/syscall.h> 58#endif |
59 60#include <nfs/rpcv2.h> 61#include <nfs/nfsv2.h> 62#include <nfs/nfsnode.h> 63#include <nfs/nfs.h> 64#include <nfs/xdr_subs.h> 65#include <nfs/nfsm_subs.h> 66#include <nfs/nfsmount.h> --- 29 unchanged lines hidden (view full) --- 96extern int nqnfs_piggy[NFS_NPROCS]; 97extern struct nfsrtt nfsrtt; 98extern time_t nqnfsstarttime; 99extern u_long nqnfs_prog, nqnfs_vers; 100extern int nqsrv_clockskew; 101extern int nqsrv_writeslack; 102extern int nqsrv_maxlease; 103 |
104#ifdef VFS_LKM 105struct getfh_args; 106extern int getfh(struct proc *, struct getfh_args *, int *); 107struct nfssvc_args; 108extern int nfssvc(struct proc *, struct nfssvc_args *, int *); 109#endif 110 |
111/* 112 * Create the header for an rpc request packet 113 * The hsiz is the size of the rest of the nfs request header. 114 * (just used to decide if a cluster is a good idea) 115 */ 116struct mbuf * 117nfsm_reqh(vp, procid, hsiz, bposp) 118 struct vnode *vp; --- 521 unchanged lines hidden (view full) --- 640 } 641 642 /* 643 * Initialize reply list and start timer 644 */ 645 nfsreqh.r_prev = nfsreqh.r_next = &nfsreqh; 646 nfs_timer(); 647 |
648 /* 649 * Set up lease_check and lease_updatetime so that other parts 650 * of the system can call us, if we are loadable. 651 */ 652 lease_check = nfs_lease_check; 653 lease_updatetime = nfs_lease_updatetime; 654 vfsconf[MOUNT_NFS]->vfc_refcount++; /* make us non-unloadable */ 655#ifdef VFS_LKM 656 sysent[SYS_nfssvc].sy_narg = 2; 657 sysent[SYS_nfssvc].sy_call = nfssvc; 658 sysent[SYS_getfh].sy_narg = 2; 659 sysent[SYS_getfh].sy_call = getfh; 660#endif 661 |
662 return (0); 663} 664 665/* 666 * Attribute cache routines. 667 * nfs_loadattrcache() - loads or updates the cache contents from attributes 668 * that are on the mbuf list 669 * nfs_getattrcache() - returns valid attributes if found in cache, returns --- 496 unchanged lines hidden --- |