diff options
author | pjd <pjd@FreeBSD.org> | 2005-12-30 11:45:07 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-12-30 11:45:07 +0000 |
commit | 3cc29e6ebff10906cf1f84a6cc2d518dcecf219c (patch) | |
tree | 6405d9feea45121dd7a557dfddbab470a5306b7e /usr.bin/telnet/Makefile | |
parent | 530bf89f140b005c1cc1706d6d7bcfa392bbf202 (diff) | |
download | FreeBSD-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 'usr.bin/telnet/Makefile')
0 files changed, 0 insertions, 0 deletions