hashinit man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

HASHINIT(9)		     OpenBSD Kernel Manual		   HASHINIT(9)

NAME
     hashinit - kernel hashtable functions

SYNOPSIS
     #include <sys/systm.h>

     void *
     hashinit(int num, int type, int flags, u_long *mask);

DESCRIPTION
     The hashinit() function is used to allocate a hashtable of a desired size
     given by the num argument.	 The hashinit() function will round this
     number to the next power of two, and allocate and initialize the
     requested hashtable.  The type and flags arguments are passed to the
     malloc(9) function unchanged.  The mask argument is used to pass back the
     mask for use with the allocated hashing table.  For an example of its
     use, see hash(9).

RETURN VALUES
     The hashinit() function returns a pointer to the allocated and
     initialized hash table.

SEE ALSO
     free(9), hash(9), malloc(9)

LIMITATIONS
     The hashinit() function currently only allocates hash tables with LIST
     bucket pointers at this time.  Future enhancements to allocate QUEUE
     bucket pointers may be warranted.	This may necessitate an API change to
     accommodate.

HISTORY
     The hashinit function first appeared in 4.4BSD.

OpenBSD 4.9			 May 31, 2007			   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net