OpenGrok
Cross Reference: subr_hash.c
xref
: /
src
/
sys
/
kern
/
subr_hash.c
Home
|
History
|
Annotate
|
Download
|
only in
kern
History log of
/src/sys/kern/subr_hash.c
Revision
Date
Author
Comments
1.13
06-Aug-2025
andvar
s/attibute/attribute/ and s/previosly/previously/ in comments.
1.12
13-Jun-2021
simonb
Return ENOENT if the hashstat sysctl was called to query a specific hash
name and that hash name doesn't exist.
1.11
13-Jun-2021
christos
remove unnecessary double init (fron paulg)
1.10
13-Jun-2021
christos
need to copyin when reading the hash name from userland
1.9
05-Apr-2021
simonb
branches: 1.9.2;
Don't call strncmp() where the length arg is the size of a pointer
instead of the max string length. Switch to strcmp() - both strings
are known nul-terminated.
Thanks tnn@ (and clang!).
1.8
01-Apr-2021
simonb
Add support for kernel hash statistics generation for vmstat -h/-H. As
well as not needing any kmem grovelling, also much faster as it doesn't
need a kmem read for hash bucket and for each item in the hash bucket
chains.
1.7
06-Jul-2016
ozaki-r
branches: 1.7.30; 1.7.32;
Add HASH_PSLIST (pslist(9)) type for hashinit()
1.6
29-May-2014
rmind
branches: 1.6.4;
hashinit: replace loop with a formula.
1.5
05-Jun-2012
rmind
branches: 1.5.2; 1.5.12;
Add hash_list_size() and simplify slightly.
1.4
25-Dec-2011
christos
PR/45736: Michael van Elst: setting kern.maxvnodes may lock up
Clamp the number of elements to the max possible if exceeded
1.3
05-May-2008
ad
branches: 1.3.34; 1.3.38;
- Convert hashinit() to use kmem_alloc(). The hash tables can be large
and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.
1.2
17-Mar-2008
rmind
branches: 1.2.2; 1.2.4;
- Replace uihashtbl_lock and struct uidinfo::ui_lock with atomic operations.
This make uid_find(), chgproccnt(), chgsbsize() and lf_alloc(), lf_free()
functions lock-less.
- Increase the size of uihashtbl in case of MP system, as suggested by <ad>.
- Add HASH_SLIST type for hashinit().
Reviewed by <ad>.
1.1
28-Jul-2007
pooka
branches: 1.1.6; 1.1.8; 1.1.10; 1.1.12; 1.1.28; 1.1.32; 1.1.34;
Move hashinit() & hashdone() from kern_subr.c to subr_hash.c to
permit standalone compilation. No functional change.
1.1.34.2
28-Jul-2007
pooka
Move hashinit() & hashdone() from kern_subr.c to subr_hash.c to
permit standalone compilation. No functional change.
1.1.34.1
28-Jul-2007
pooka
file subr_hash.c was added on branch matt-mips64 on 2007-07-28 12:53:53 +0000
1.1.32.2
02-Jun-2008
mjf
Sync with HEAD.
1.1.32.1
03-Apr-2008
mjf
Sync with HEAD.
1.1.28.1
24-Mar-2008
keiichi
sync with head.
1.1.12.3
24-Mar-2008
yamt
sync with head.
1.1.12.2
03-Sep-2007
yamt
sync with head.
1.1.12.1
28-Jul-2007
yamt
file subr_hash.c was added on branch yamt-lazymbuf on 2007-09-03 14:41:03 +0000
1.1.10.1
23-Mar-2008
matt
sync with HEAD
1.1.8.2
20-Aug-2007
ad
Sync with HEAD.
1.1.8.1
28-Jul-2007
ad
file subr_hash.c was added on branch vmlocking on 2007-08-20 22:07:06 +0000
1.1.6.2
15-Aug-2007
skrll
Sync with HEAD.
1.1.6.1
28-Jul-2007
skrll
file subr_hash.c was added on branch nick-csl-alignment on 2007-08-15 13:49:12 +0000
1.2.4.1
16-May-2008
yamt
sync with head.
1.2.2.1
18-May-2008
yamt
sync with head.
1.3.38.1
18-Feb-2012
mrg
merge to -current.
1.3.34.2
30-Oct-2012
yamt
sync with head
1.3.34.1
17-Apr-2012
yamt
sync with head
1.5.12.1
10-Aug-2014
tls
Rebase.
1.5.2.2
03-Dec-2017
jdolecek
update from HEAD
1.5.2.1
20-Aug-2014
tls
Rebase to HEAD as of a few days ago.
1.6.4.1
09-Jul-2016
skrll
Sync with HEAD
1.7.32.2
17-Apr-2021
thorpej
Sync with HEAD.
1.7.32.1
03-Apr-2021
thorpej
Sync with HEAD.
1.7.30.1
03-Apr-2021
thorpej
Sync with HEAD.
1.9.2.1
17-Jun-2021
thorpej
Sync w/ HEAD.
Indexes created Thu Oct 02 01:09:59 GMT 2025