|
|
1.1 ! root 1: kkaalllloocc() -- Memory-Manipulation Routine ! 2: ! 3: #iinncclluuddee <ssyyss/ccoohheerreenntt.hh> ! 4: cchhaarr * ! 5: kkaalllloocc(_n) ! 6: iinntt _n; ! 7: ! 8: kkaalllloocc() is a macro that allocates _n bytes in the kernel's data segment. ! 9: The amount of space available to kkaalllloocc() is limited by the kernel variable ! 10: AALLLLSSIIZZEE. kkaalllloocc() returns a pointer to the allocated buffer, or NULL if ! 11: space is insufficient. ! 12: ! 13: The storage space returned will contain garbage. Use mmeemmsseett() to clear the ! 14: storage, if needed. Space allocated with kkaalllloocc() must be deallocated with ! 15: kkffrreeee(). ! 16: ! 17: _S_e_e _A_l_s_o ! 18: kkffrreeee(), mmeemmoorryy-mmaanniippuullaattiioonn rroouuttiinneess
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.