Lines Matching defs:pp
9185 pool_init(struct pool *pp, size_t size, unsigned int align, unsigned int ioff,
9189 bzero(pp, sizeof (*pp));
9190 pp->pool_zone = zinit(size, 1024 * size, PAGE_SIZE, wchan);
9191 if (pp->pool_zone != NULL) {
9192 zone_change(pp->pool_zone, Z_EXPAND, TRUE);
9193 zone_change(pp->pool_zone, Z_CALLERACCT, FALSE);
9194 pp->pool_hiwat = pp->pool_limit = (unsigned int)-1;
9195 pp->pool_name = wchan;
9201 pool_destroy(struct pool *pp)
9203 #pragma unused(pp)
9207 pool_sethiwat(struct pool *pp, int n)
9209 pp->pool_hiwat = n; /* Currently unused */
9213 pool_sethardlimit(struct pool *pp, int n, const char *warnmess, int ratecap)
9216 pp->pool_limit = n;
9220 pool_get(struct pool *pp, int flags)
9226 if (pp->pool_count > pp->pool_limit) {
9229 pp->pool_name != NULL ? pp->pool_name : "unknown",
9230 pp->pool_limit));
9231 pp->pool_fails++;
9235 buf = zalloc_canblock(pp->pool_zone, (flags & (PR_NOWAIT | PR_WAITOK)));
9237 pp->pool_count++;
9238 VERIFY(pp->pool_count != 0);
9244 pool_put(struct pool *pp, void *v)
9248 zfree(pp->pool_zone, v);
9249 VERIFY(pp->pool_count != 0);
9250 pp->pool_count--;