File:  [MW Coherent from dump] / coherent / f / usr / man / KERNEL / kalloc
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

kkaalllloocc() -- Memory-Manipulation Routine

#iinncclluuddee <ssyyss/ccoohheerreenntt.hh>
cchhaarr *
kkaalllloocc(_n)
iinntt _n;

kkaalllloocc() is  a macro that allocates  _n bytes in the  kernel's data segment.
The amount of space available to kkaalllloocc() is limited by the kernel variable
AALLLLSSIIZZEE. kkaalllloocc()  returns a  pointer to the  allocated buffer, or  NULL if
space is insufficient.

The storage space returned will contain garbage.  Use mmeemmsseett() to clear the
storage, if needed.  Space allocated with kkaalllloocc() must be deallocated with
kkffrreeee().

_S_e_e _A_l_s_o
kkffrreeee(), mmeemmoorryy-mmaanniippuullaattiioonn rroouuttiinneess

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.