summaryrefslogtreecommitdiff
path: root/minix%3fid%3d0f03189a6a8bafe2a370ea990cf2cbb19da81b70?id=5edbea50631e50893146...
diff options
context:
space:
mode:
authorDavid van Moolenbroek <david@minix3.org>2016-11-04 17:31:40 +0000
committerDavid van Moolenbroek <david@minix3.org>2017-04-30 13:15:57 +0000
commit5edbea50631e5089314617ad4298253cfedb7793 (patch)
tree565b74feb7be0138a0badcd829048adad6130606 /minix%3fid%3d0f03189a6a8bafe2a370ea990cf2cbb19da81b70?id=5edbea50631e5089314617ad4298253cfedb7793
parent5d5fbe79c1b60734f34c69330aec5496644e8651 (diff)
libsys: allow for grant preallocation
Since the grant table is allocated dynamically, a system service always runs the risk of running out of memory at run time when trying to allocate a grant. In order to allow services to mitigate that risk, grants can now be preallocated, typically at system service startup, using the new cpf_prealloc(3) libsys function. The function takes a 'count' parameter that indicates the number of additional grants to preallocate. Thus, the function may be called from multiple submodules within a service, each preallocating their own maximum of grants that it may need at run time. Change-Id: I6904726a722a8c27dfe2efa470e683718f310272
Diffstat (limited to 'minix%3fid%3d0f03189a6a8bafe2a370ea990cf2cbb19da81b70?id=5edbea50631e5089314617ad4298253cfedb7793')
0 files changed, 0 insertions, 0 deletions