diff options
author | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-05-03 07:17:13 +0000 |
---|---|---|
committer | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-05-03 07:17:13 +0000 |
commit | f8ce3dfaf15d0b16ef7cc235ee5c54d528a2de57 (patch) | |
tree | 45a74f9502b2a5aab2e82bc6a51bb083759e6779 /sys/sys/systm.h | |
parent | 453130d9bfc1c6d68b366dfcb041689d69f81295 (diff) | |
download | src-f8ce3dfaf15d0b16ef7cc235ee5c54d528a2de57.tar.gz src-f8ce3dfaf15d0b16ef7cc235ee5c54d528a2de57.zip |
kern: Add phashinit_flags(), which allows malloc(M_NOWAIT)
It will be used for the upcoming LRO hash table initialization.
And probably will be useful in other cases, when M_WAITOK can't
be used.
Reviewed by: jhb, kib
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6138
Notes
Notes:
svn path=/head/; revision=298956
Diffstat (limited to 'sys/sys/systm.h')
-rw-r--r-- | sys/sys/systm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 34ad5ba58dd8..1f05f69074ad 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -189,6 +189,8 @@ void *hashinit_flags(int count, struct malloc_type *type, #define HASH_WAITOK 0x00000002 void *phashinit(int count, struct malloc_type *type, u_long *nentries); +void *phashinit_flags(int count, struct malloc_type *type, u_long *nentries, + int flags); void g_waitidle(void); void panic(const char *, ...) __dead2 __printflike(1, 2); |