proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
[dragonfly.git] / sys / vfs / nfs / krpc.h
CommitLineData
984263bc
MD
1/* $NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp $ */
2/* $FreeBSD: src/sys/nfs/krpc.h,v 1.6 1999/08/28 00:49:55 peter Exp $ */
dadab5e9 3/* $DragonFly: src/sys/vfs/nfs/krpc.h,v 1.3 2003/06/25 03:56:07 dillon Exp $ */
984263bc
MD
4
5#include <sys/cdefs.h>
6
7struct mbuf;
8struct proc;
dadab5e9 9struct thread;
984263bc
MD
10struct sockaddr;
11struct sockaddr_in;
12
13int krpc_call __P((struct sockaddr_in *_sin,
14 u_int prog, u_int vers, u_int func,
dadab5e9 15 struct mbuf **data, struct sockaddr **from, struct thread *td));
984263bc
MD
16
17int krpc_portmap __P((struct sockaddr_in *_sin,
dadab5e9 18 u_int prog, u_int vers, u_int16_t *portp,struct thread *td));
984263bc
MD
19
20struct mbuf *xdr_string_encode __P((char *str, int len));
21
22/*
23 * RPC definitions for the portmapper
24 */
25#define PMAPPORT 111
26#define PMAPPROG 100000
27#define PMAPVERS 2
28#define PMAPPROC_NULL 0
29#define PMAPPROC_SET 1
30#define PMAPPROC_UNSET 2
31#define PMAPPROC_GETPORT 3
32#define PMAPPROC_DUMP 4
33#define PMAPPROC_CALLIT 5