summaryrefslogtreecommitdiffstats
path: root/usr.sbin/i2c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2010-08-16 14:24:00 +0000
committerandre <andre@FreeBSD.org>2010-08-16 14:24:00 +0000
commitc239a236c133a4ec85da52df6f459b176073ffb5 (patch)
tree53cc3f15371d15c1aca61a769565d66f1f460c83 /usr.sbin/i2c
parent04035a1299f7dc7d5895bd3a50c9bd918e2eedb1 (diff)
downloadFreeBSD-src-c239a236c133a4ec85da52df6f459b176073ffb5.zip
FreeBSD-src-c239a236c133a4ec85da52df6f459b176073ffb5.tar.gz
Add uma_zone_get_max() to obtain the effective limit after a call
to uma_zone_set_max(). The UMA zone limit is not exactly set to the value supplied but rounded up to completely fill the backing store increment (a page normally). This can lead to surprising situations where the number of elements allocated from UMA is higher than the supplied limit value. The new get function reads back the effective value so that the supplied limit value can be adjusted to the real limit. Reviewed by: jeffr MFC after: 1 week
Diffstat (limited to 'usr.sbin/i2c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud