summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-12-30 11:45:07 +0000
committerpjd <pjd@FreeBSD.org>2005-12-30 11:45:07 +0000
commit3cc29e6ebff10906cf1f84a6cc2d518dcecf219c (patch)
tree6405d9feea45121dd7a557dfddbab470a5306b7e /contrib/ipfilter
parent530bf89f140b005c1cc1706d6d7bcfa392bbf202 (diff)
downloadFreeBSD-src-3cc29e6ebff10906cf1f84a6cc2d518dcecf219c.zip
FreeBSD-src-3cc29e6ebff10906cf1f84a6cc2d518dcecf219c.tar.gz
Improve memguard a bit:
- Provide tunable vm.memguard.desc, so one can specify memory type without changing the code and recompiling the kernel. - Allow to use memguard for kernel modules by providing sysctl vm.memguard.desc, which can be changed to short description of memory type before module is loaded. - Move as much memguard code as possible to memguard.c. - Add sysctl node vm.memguard. and move memguard-specific sysctl there. - Add malloc_desc2type() function for finding memory type based on its short description (ks_shortdesc field). - Memory type can be changed (via vm.memguard.desc sysctl) only if it doesn't exist (will be loaded later) or when no memory is allocated yet. If there is allocated memory for the given memory type, return EBUSY. - Implement two ways of memory types comparsion and make safer/slower the default.
Diffstat (limited to 'contrib/ipfilter')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud