KERNEL -> _KERNEL
This commit is contained in:
parent
7c04233887
commit
f76f1f89ad
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: clnp.h,v 1.6 1994/06/29 06:39:05 cgd Exp $ */
|
||||
/* $NetBSD: clnp.h,v 1.7 1995/03/26 20:35:13 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993, 1994
|
||||
@ -346,7 +346,7 @@ struct clnp_optidx {
|
||||
#define CLNP_ERRORS 22
|
||||
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
int clnp_er_index();
|
||||
#endif
|
||||
|
||||
@ -388,7 +388,7 @@ struct troll {
|
||||
rt->rt_rmx.rmx_mtu : clnp_badmtu(ifp, rt, __LINE__, __FILE__))\
|
||||
- trollctl.tr_mtu_adj)
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
extern float troll_random;
|
||||
#endif
|
||||
|
||||
@ -460,4 +460,4 @@ struct mbuf *clnp_reass();
|
||||
#ifdef TROLL
|
||||
struct troll trollctl;
|
||||
#endif /* TROLL */
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cltp_var.h,v 1.5 1994/06/29 06:39:26 cgd Exp $ */
|
||||
/* $NetBSD: cltp_var.h,v 1.6 1995/03/26 20:35:15 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -50,7 +50,7 @@ struct cltpstat {
|
||||
int cltps_opackets;
|
||||
};
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
struct isopcb cltb;
|
||||
struct cltpstat cltpstat;
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cons.h,v 1.5 1994/06/29 06:39:27 cgd Exp $ */
|
||||
/* $NetBSD: cons.h,v 1.6 1995/03/26 20:35:17 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -88,4 +88,4 @@ struct dte_addr {
|
||||
|
||||
#define PRC_CONS_SEND_DONE 2 /* something unused in protosw.h */
|
||||
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cons_pcb.h,v 1.5 1994/06/29 06:39:28 cgd Exp $ */
|
||||
/* $NetBSD: cons_pcb.h,v 1.6 1995/03/26 20:35:18 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -188,6 +188,6 @@ struct e_clear_data {
|
||||
u_char ecd_diagnostic;
|
||||
};
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
#define IncStat(XYZ) cons_stat.XYZ++
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: esis.h,v 1.6 1994/06/29 06:39:33 cgd Exp $ */
|
||||
/* $NetBSD: esis.h,v 1.7 1995/03/26 20:35:20 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -116,4 +116,4 @@ struct esis_stat {
|
||||
|
||||
#ifdef KERNEL
|
||||
struct esis_stat esis_stat;
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: iso.h,v 1.5 1994/06/29 06:39:41 cgd Exp $ */
|
||||
/* $NetBSD: iso.h,v 1.6 1995/03/26 20:35:22 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -167,7 +167,7 @@ struct sockaddr_iso {
|
||||
#define AFI_RFC986 0x47 /* bcd of "47" */
|
||||
#define AFI_SNA 0x00 /* SubNetwork Address; invalid really...*/
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
|
||||
extern int iso_netmatch();
|
||||
extern int iso_hash();
|
||||
@ -189,7 +189,7 @@ char *iso_ntoa __P((const struct iso_addr *));
|
||||
struct hostent *iso_gethostbyname(), *iso_gethostbyaddr();
|
||||
__END_DECLS
|
||||
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#define _offsetof(t, m) ((int)((caddr_t)&((t *)0)->m))
|
||||
#endif /* _NETISO_ISO_H_ */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: iso_pcb.h,v 1.5 1994/06/29 06:39:47 cgd Exp $ */
|
||||
/* $NetBSD: iso_pcb.h,v 1.6 1995/03/26 20:35:23 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -108,6 +108,6 @@ struct rawisopcb {
|
||||
#define sotoisopcb(so) ((struct isopcb *)(so)->so_pcb)
|
||||
#define sotorawisopcb(so) ((struct rawisopcb *)(so)->so_pcb)
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
struct isopcb *iso_pcblookup();
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: iso_snpac.h,v 1.5 1994/06/29 06:39:53 cgd Exp $ */
|
||||
/* $NetBSD: iso_snpac.h,v 1.6 1995/03/26 20:35:25 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -111,4 +111,4 @@ struct llinfo_llc {
|
||||
|
||||
#ifdef KERNEL
|
||||
struct llinfo_llc llinfo_llc; /* head for linked lists */
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: iso_var.h,v 1.5 1994/06/29 06:39:54 cgd Exp $ */
|
||||
/* $NetBSD: iso_var.h,v 1.6 1995/03/26 20:35:28 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1988, 1991, 1993
|
||||
@ -129,8 +129,8 @@ struct snpa_hdr {
|
||||
char snh_shost[6];
|
||||
short snh_flags;
|
||||
};
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
struct iso_ifaddr *iso_ifaddr; /* linked list of iso address ifaces */
|
||||
struct iso_ifaddr *iso_localifa(); /* linked list of iso address ifaces */
|
||||
struct ifqueue clnlintrq; /* clnl packet input queue */
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tp_param.h,v 1.5 1994/06/29 06:40:25 cgd Exp $ */
|
||||
/* $NetBSD: tp_param.h,v 1.6 1995/03/26 20:35:29 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -74,7 +74,7 @@ SOFTWARE.
|
||||
#define TP_DECBIT_CLEAR_COUNT 3
|
||||
|
||||
/*#define N_TPREF 100 */
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
extern int N_TPREF;
|
||||
#endif
|
||||
|
||||
@ -340,7 +340,7 @@ bcopy((caddr_t)&(((struct tp_vbp *)(src))->tpv_val),(caddr_t)&(dst),sizeof(type)
|
||||
} }
|
||||
#endif /* ARGO_DEBUG */
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
extern int tp_rttadd, tp_rttdiv;
|
||||
#include <sys/syslog.h>
|
||||
#define printf logpri(LOG_DEBUG),addlog
|
||||
@ -355,6 +355,6 @@ extern int tp_rttadd, tp_rttdiv;
|
||||
#endif /* defined(__STDC__) || defined(__cplusplus) */
|
||||
|
||||
#endif /* tp_NSTATES */
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* _NETISO_TP_PARAM_H_ */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tp_pcb.h,v 1.6 1994/09/20 06:41:37 cgd Exp $ */
|
||||
/* $NetBSD: tp_pcb.h,v 1.7 1995/03/26 20:35:31 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -334,7 +334,7 @@ u_int tp_start_win;
|
||||
CONG_INIT_SAMPLE(pcb); \
|
||||
}
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
extern struct tp_refinfo tp_refinfo;
|
||||
extern struct tp_ref *tp_ref;
|
||||
extern struct tp_param tp_param;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tp_trace.h,v 1.5 1994/06/29 06:40:46 cgd Exp $ */
|
||||
/* $NetBSD: tp_trace.h,v 1.6 1995/03/26 20:35:33 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -89,7 +89,7 @@ SOFTWARE.
|
||||
|
||||
/* this #if is to avoid lint */
|
||||
|
||||
#if defined(TP_TRACEFILE)||!defined(KERNEL)
|
||||
#if defined(TP_TRACEFILE)||!defined(_KERNEL)
|
||||
|
||||
#include <netiso/tp_tpdu.h>
|
||||
|
||||
@ -145,7 +145,7 @@ struct tp_Trace {
|
||||
#define tpt_window tpt_stuff.tpt_Time.tptv_window
|
||||
#define tpt_size tpt_stuff.tpt_Time.tptv_size
|
||||
|
||||
#endif /* defined(TP_TRACEFILE)||!defined(KERNEL) */
|
||||
#endif /* defined(TP_TRACEFILE)||!defined(_KERNEL) */
|
||||
|
||||
|
||||
#ifdef TPPT
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tuba_table.h,v 1.2 1994/06/29 06:40:55 cgd Exp $ */
|
||||
/* $NetBSD: tuba_table.h,v 1.3 1995/03/26 20:35:36 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -54,7 +54,7 @@ struct tuba_cache {
|
||||
#define SWAB(a, b) { union { u_char c[2]; u_short s;} s; u_char t; \
|
||||
s.s = (b); t = s.c[0]; s.c[0] = s.c[1]; s.c[1] = t; a = s.s;}
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
extern int tuba_table_size;
|
||||
extern struct tuba_cache **tuba_table;
|
||||
extern struct radix_node_head *tuba_tree;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: idp_var.h,v 1.5 1994/06/29 06:41:31 cgd Exp $ */
|
||||
/* $NetBSD: idp_var.h,v 1.6 1995/03/26 20:36:17 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1984, 1985, 1986, 1987, 1993
|
||||
@ -46,6 +46,6 @@ struct idpstat {
|
||||
int idps_badlen; /* ip length < ip header length */
|
||||
};
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
struct idpstat idpstat;
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ns.h,v 1.5 1994/06/29 06:41:34 cgd Exp $ */
|
||||
/* $NetBSD: ns.h,v 1.6 1995/03/26 20:36:19 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1984, 1985, 1986, 1987, 1993
|
||||
@ -133,7 +133,7 @@ struct sockaddr_ns {
|
||||
#define ns_nullhost(x) (((x).x_host.s_host[0]==0) && \
|
||||
((x).x_host.s_host[1]==0) && ((x).x_host.s_host[2]==0))
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
extern struct domain nsdomain;
|
||||
union ns_host ns_thishost;
|
||||
union ns_host ns_zerohost;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ns_error.h,v 1.5 1994/06/29 06:41:38 cgd Exp $ */
|
||||
/* $NetBSD: ns_error.h,v 1.6 1995/03/26 20:36:20 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1984, 1988, 1993
|
||||
@ -87,6 +87,6 @@ struct ns_errstat {
|
||||
since we might not know all */
|
||||
};
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
struct ns_errstat ns_errstat;
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ns_pcb.h,v 1.5 1994/06/29 06:41:47 cgd Exp $ */
|
||||
/* $NetBSD: ns_pcb.h,v 1.6 1995/03/26 20:36:21 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1984, 1985, 1986, 1987, 1993
|
||||
@ -76,7 +76,7 @@ struct nspcb {
|
||||
#define NSRCVQ 2048
|
||||
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
struct nspcb nspcb; /* head of list */
|
||||
struct nspcb *ns_pcblookup();
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: spp_timer.h,v 1.5 1994/06/29 06:41:56 cgd Exp $ */
|
||||
/* $NetBSD: spp_timer.h,v 1.6 1995/03/26 20:36:22 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988, 1993
|
||||
@ -119,6 +119,6 @@ char *spptimers[] =
|
||||
(tv) = (tvmax); \
|
||||
}
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
extern int spp_backoff[];
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: spp_var.h,v 1.4 1994/06/29 06:41:59 cgd Exp $ */
|
||||
/* $NetBSD: spp_var.h,v 1.5 1995/03/26 20:36:23 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1984, 1985, 1986, 1987, 1993
|
||||
@ -184,7 +184,7 @@ struct spp_istat {
|
||||
struct sppstat newstats;
|
||||
};
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
struct spp_istat spp_istat;
|
||||
|
||||
/* Following was struct sppstat sppstat; */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nfs.h,v 1.7 1994/08/18 22:47:43 mycroft Exp $ */
|
||||
/* $NetBSD: nfs.h,v 1.8 1995/03/26 20:37:29 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -157,7 +157,7 @@ struct nfsstats {
|
||||
* such as SIGALRM will not expect file I/O system calls to be interrupted
|
||||
* by them and break.
|
||||
*/
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
#define NFSINT_SIGMASK (sigmask(SIGINT)|sigmask(SIGTERM)|sigmask(SIGKILL)| \
|
||||
sigmask(SIGHUP)|sigmask(SIGQUIT))
|
||||
|
||||
@ -305,4 +305,4 @@ TAILQ_HEAD(, nfsd) nfsd_head;
|
||||
int nfsd_head_flag;
|
||||
#define NFSD_CHECKSLP 0x01
|
||||
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nfsmount.h,v 1.7 1994/12/13 17:17:04 mycroft Exp $ */
|
||||
/* $NetBSD: nfsmount.h,v 1.8 1995/03/26 20:37:31 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -73,12 +73,12 @@ struct nfsmount {
|
||||
char *nm_authstr; /* Authenticator string */
|
||||
};
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
* Convert mount ptr to nfsmount ptr.
|
||||
*/
|
||||
#define VFSTONFS(mp) ((struct nfsmount *)((mp)->mnt_data))
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
||||
/*
|
||||
* Prototypes for NFS mount operations
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nfsnode.h,v 1.13 1994/12/13 17:17:05 mycroft Exp $ */
|
||||
/* $NetBSD: nfsnode.h,v 1.14 1995/03/26 20:37:32 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -105,7 +105,7 @@ struct nfsnode {
|
||||
*/
|
||||
TAILQ_HEAD(, buf) nfs_bufq;
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
* Prototypes for NFS vnode operations
|
||||
*/
|
||||
@ -164,4 +164,4 @@ int nfs_vfree __P((struct vop_vfree_args *));
|
||||
int nfs_truncate __P((struct vop_truncate_args *));
|
||||
int nfs_update __P((struct vop_update_args *));
|
||||
int nfs_bwrite __P((struct vop_bwrite_args *));
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: inode.h,v 1.6 1994/12/21 20:00:21 mycroft Exp $ */
|
||||
/* $NetBSD: inode.h,v 1.7 1995/03/26 20:38:15 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1989, 1993
|
||||
@ -122,7 +122,7 @@ struct inode {
|
||||
#define IN_UPDATE 0x0100 /* Modification time update request. */
|
||||
#define IN_WANTED 0x0200 /* Inode is wanted by a process. */
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
* Structure used to pass around logical block paths generated by
|
||||
* ufs_getlbns and used by truncate and bmap code.
|
||||
@ -159,4 +159,4 @@ struct ufid {
|
||||
ino_t ufid_ino; /* File number (ino). */
|
||||
int32_t ufid_gen; /* Generation number. */
|
||||
};
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: quota.h,v 1.5 1994/12/21 20:07:26 mycroft Exp $ */
|
||||
/* $NetBSD: quota.h,v 1.6 1995/03/26 20:38:17 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
@ -109,7 +109,7 @@ struct dqblk {
|
||||
time_t dqb_itime; /* time limit for excessive files */
|
||||
};
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
#include <sys/queue.h>
|
||||
|
||||
/*
|
||||
@ -208,6 +208,6 @@ __BEGIN_DECLS
|
||||
void chkdquot __P((struct inode *));
|
||||
__END_DECLS
|
||||
#endif
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* _QUOTA_ */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.9 1994/06/29 06:47:46 cgd Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.10 1995/03/26 20:39:07 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -86,7 +86,7 @@ typedef struct pmap_statistics *pmap_statistics_t;
|
||||
|
||||
#include <machine/pmap.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
void *pmap_bootstrap_alloc __P((int));
|
||||
void pmap_bootstrap( /* machine dependent */ );
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_extern.h,v 1.12 1995/01/09 02:45:29 cgd Exp $ */
|
||||
/* $NetBSD: vm_extern.h,v 1.13 1995/03/26 20:39:08 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -47,7 +47,7 @@ struct vnode;
|
||||
void chgkprot __P((caddr_t, int, int));
|
||||
#endif
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
#ifdef TYPEDEF_FOR_UAP
|
||||
int compat_43_getpagesize __P((struct proc *p, void *, int *));
|
||||
int madvise __P((struct proc *, void *, int *));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_map.h,v 1.10 1994/06/29 06:48:08 cgd Exp $ */
|
||||
/* $NetBSD: vm_map.h,v 1.11 1995/03/26 20:39:10 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -180,7 +180,7 @@ typedef struct {
|
||||
#define MAX_KMAP 10
|
||||
#define MAX_KMAPENT 500
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
boolean_t vm_map_check_protection __P((vm_map_t,
|
||||
vm_offset_t, vm_offset_t, vm_prot_t));
|
||||
int vm_map_copy __P((vm_map_t, vm_map_t, vm_offset_t,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_object.h,v 1.14 1994/12/10 11:46:31 pk Exp $ */
|
||||
/* $NetBSD: vm_object.h,v 1.15 1995/03/26 20:39:12 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -132,7 +132,7 @@ vm_object_t kmem_object;
|
||||
|
||||
#define vm_object_cache_lock() simple_lock(&vm_cache_lock)
|
||||
#define vm_object_cache_unlock() simple_unlock(&vm_cache_lock)
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#define vm_object_lock_init(object) simple_lock_init(&(object)->Lock)
|
||||
#define vm_object_lock(object) simple_lock(&(object)->Lock)
|
||||
@ -141,7 +141,7 @@ vm_object_t kmem_object;
|
||||
#define vm_object_sleep(event, object, interruptible) \
|
||||
thread_sleep((event), &(object)->Lock, (interruptible))
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
vm_object_t vm_object_allocate __P((vm_size_t));
|
||||
void vm_object_cache_clear __P((void));
|
||||
void vm_object_cache_trim __P((void));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_page.h,v 1.17 1995/01/09 02:46:43 cgd Exp $ */
|
||||
/* $NetBSD: vm_page.h,v 1.18 1995/03/26 20:39:13 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -158,7 +158,7 @@ struct vm_page {
|
||||
#define VM_PAGE_CHECK(mem)
|
||||
#endif /* VM_PAGE_DEBUG */
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
* Each pageable resident page falls into one of three lists:
|
||||
*
|
||||
@ -293,5 +293,5 @@ void vm_page_unwire __P((vm_page_t));
|
||||
void vm_page_wire __P((vm_page_t));
|
||||
boolean_t vm_page_zero_fill __P((vm_page_t));
|
||||
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
#endif /* !_VM_PAGE_ */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_pageout.h,v 1.10 1994/10/30 19:11:24 cgd Exp $ */
|
||||
/* $NetBSD: vm_pageout.h,v 1.11 1995/03/26 20:39:14 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -90,7 +90,7 @@ simple_lock_data_t vm_pages_needed_lock;
|
||||
thread_sleep(&cnt.v_free_count, \
|
||||
&vm_pages_needed_lock, FALSE); \
|
||||
}
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
void vm_pageout __P((void));
|
||||
void vm_pageout_scan __P((void));
|
||||
void vm_pageout_page __P((vm_page_t, vm_object_t));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_pager.h,v 1.9 1994/06/29 06:48:39 cgd Exp $ */
|
||||
/* $NetBSD: vm_pager.h,v 1.10 1995/03/26 20:39:15 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990 University of Utah.
|
||||
@ -103,7 +103,7 @@ struct pagerops {
|
||||
#define VM_PAGER_ERROR 4
|
||||
#define VM_PAGER_AGAIN 5
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
extern struct pagerops *dfltpagerops;
|
||||
|
||||
vm_pager_t vm_pager_allocate
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_param.h,v 1.11 1995/01/09 02:47:23 cgd Exp $ */
|
||||
/* $NetBSD: vm_param.h,v 1.12 1995/03/26 20:39:16 jtc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -94,7 +94,7 @@ typedef int boolean_t;
|
||||
#define PAGE_SIZE cnt.v_page_size /* size of page */
|
||||
#define PAGE_MASK page_mask /* size of page - 1 */
|
||||
#define PAGE_SHIFT page_shift /* bits to shift for pages */
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
extern vm_size_t page_mask;
|
||||
extern int page_shift;
|
||||
#endif
|
||||
@ -130,7 +130,7 @@ extern int page_shift;
|
||||
* Convert addresses to pages and vice versa.
|
||||
* No rounding is used.
|
||||
*/
|
||||
#ifdef KERNEL
|
||||
#ifdef _KERNEL
|
||||
#define atop(x) (((unsigned long)(x)) >> PAGE_SHIFT)
|
||||
#define ptoa(x) ((vm_offset_t)((x) << PAGE_SHIFT))
|
||||
|
||||
@ -157,6 +157,6 @@ extern vm_offset_t last_addr; /* last physical page */
|
||||
#define trunc_page(x) \
|
||||
((((vm_offset_t)(x)) / vm_page_size) * vm_page_size)
|
||||
|
||||
#endif /* KERNEL */
|
||||
#endif /* _KERNEL */
|
||||
#endif /* ASSEMBLER */
|
||||
#endif /* _VM_PARAM_ */
|
||||
|
Loading…
Reference in New Issue
Block a user