Deleted Added
full compact
namei.h (6970) namei.h (9759)
1/*
2 * Copyright (c) 1985, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)namei.h 8.2 (Berkeley) 1/4/94
1/*
2 * Copyright (c) 1985, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)namei.h 8.2 (Berkeley) 1/4/94
34 * $Id: namei.h,v 1.4 1995/03/06 06:45:47 phk Exp $
34 * $Id: namei.h,v 1.5 1995/03/09 20:27:21 phk Exp $
35 */
36
37#ifndef _SYS_NAMEI_H_
38#define _SYS_NAMEI_H_
39
40#include <sys/queue.h>
41
42/*

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

171 u_long nc_nbr; /* a serial number */
172 u_long nc_hits; /* how many times we got hit */
173#endif
174 char nc_nlen; /* length of name */
175 char nc_name[NCHNAMLEN]; /* segment name */
176};
177
178#ifdef KERNEL
35 */
36
37#ifndef _SYS_NAMEI_H_
38#define _SYS_NAMEI_H_
39
40#include <sys/queue.h>
41
42/*

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

171 u_long nc_nbr; /* a serial number */
172 u_long nc_hits; /* how many times we got hit */
173#endif
174 char nc_nlen; /* length of name */
175 char nc_name[NCHNAMLEN]; /* segment name */
176};
177
178#ifdef KERNEL
179u_long nextvnodeid;
180u_long numvnodes, numcache;
179extern u_long nextvnodeid;
180extern u_long numcache;
181extern u_long numvnodes;
182
181int namei __P((struct nameidata *ndp));
182int lookup __P((struct nameidata *ndp));
183int relookup __P((struct vnode *dvp, struct vnode **vpp,
184 struct componentname *cnp));
185#endif
186
187/*
188 * Stats on usefulness of namei caches.
189 */
190struct nchstats {
191 long ncs_goodhits; /* hits that we can really use */
192 long ncs_neghits; /* negative hits that we can use */
193 long ncs_badhits; /* hits we must drop */
194 long ncs_falsehits; /* hits with id mismatch */
195 long ncs_miss; /* misses */
196 long ncs_long; /* long names that ignore cache */
197 long ncs_pass2; /* names found with passes == 2 */
198 long ncs_2passes; /* number of times we attempt it */
199};
183int namei __P((struct nameidata *ndp));
184int lookup __P((struct nameidata *ndp));
185int relookup __P((struct vnode *dvp, struct vnode **vpp,
186 struct componentname *cnp));
187#endif
188
189/*
190 * Stats on usefulness of namei caches.
191 */
192struct nchstats {
193 long ncs_goodhits; /* hits that we can really use */
194 long ncs_neghits; /* negative hits that we can use */
195 long ncs_badhits; /* hits we must drop */
196 long ncs_falsehits; /* hits with id mismatch */
197 long ncs_miss; /* misses */
198 long ncs_long; /* long names that ignore cache */
199 long ncs_pass2; /* names found with passes == 2 */
200 long ncs_2passes; /* number of times we attempt it */
201};
202
203extern struct nchstats nchstats;
204
200#endif /* !_SYS_NAMEI_H_ */
205#endif /* !_SYS_NAMEI_H_ */