Home
last modified time | relevance | path

Searched refs:nalloc (Results 1 – 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/lp/lib/access/
H A Dloadaccess.c122 register size_t nalloc, in _loadaccess() local
139 nalloc = ACC_MAX_GUESS; in _loadaccess()
140 list = (char **)Malloc((nalloc + 1) * sizeof(char *)); in _loadaccess()
155 if (nlist >= nalloc) { in _loadaccess()
156 nalloc += ACC_MAX_GUESS; in _loadaccess()
159 (nalloc + 1) * sizeof(char *) in _loadaccess()
185 if (nlist != nalloc) { in _loadaccess()
/illumos-gate/usr/src/cmd/lp/lib/filters/
H A Dloadfilters.c60 size_t nalloc; in loadfilters() local
63 nalloc = nfilters; in loadfilters()
66 nalloc = FL_MAX_GUESS; in loadfilters()
76 filters = (_FILTER *)Malloc((nalloc + 1) * sizeof(_FILTER)); in loadfilters()
94 if (++nfilters > nalloc) { in loadfilters()
95 nalloc = nfilters; in loadfilters()
98 (nalloc + 1) * sizeof(_FILTER) in loadfilters()
157 if (nfilters != nalloc) { in loadfilters()
/illumos-gate/usr/src/lib/libpkg/common/
H A Dnhash.c122 if (bp->nent >= bp->nalloc) { in add_cache()
123 if (bp->nalloc == 0) { in add_cache()
130 bp->nalloc + cp->bsz, in add_cache()
135 (bp->nalloc + cp->bsz))) != NULL) { in add_cache()
137 (sizeof (*bp->itempp) * bp->nalloc)); in add_cache()
140 (sizeof (*bp->itempp) * bp->nalloc)); in add_cache()
153 bp->nalloc += cp->bsz; in add_cache()
H A Dnhash.h50 int nalloc; member
/illumos-gate/usr/src/cmd/sendmail/db/mp/
H A Dmp_sync.c42 int ar_cnt, nalloc, next, maxpin, ret, wrote; local
63 nalloc = mp->stat.st_page_dirty + mp->stat.st_page_dirty / 2 + 10;
66 if ((ret = __os_malloc(nalloc * sizeof(BH *), NULL, &bharray)) != 0)
160 if (++ar_cnt >= nalloc || ar_cnt >= maxpin) {
242 __os_free(bharray, nalloc * sizeof(BH *));
322 int ar_cnt, incomplete, nalloc, next, ret, wrote; local
338 nalloc = mp->stat.st_page_dirty + mp->stat.st_page_dirty / 2 + 10;
341 if ((ret = __os_malloc(nalloc * sizeof(BH *), NULL, &bharray)) != 0)
370 if (++ar_cnt >= nalloc) {
422 __os_free(bharray, nalloc * sizeof(BH *));
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevpolicy.c151 int nalloc = 0, cnt = 0; in loadpolicy() local
171 if (cnt >= nalloc) { in loadpolicy()
172 nalloc += PLCY_CHUNK; in loadpolicy()
173 mem = realloc(mem, nalloc * devplcysys_sz); in loadpolicy()
176 nalloc * devplcysys_sz); in loadpolicy()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsoconfig.c421 size_t tupcnt, nalloc; in parse_filter_params() local
509 nalloc = 4; in parse_filter_params()
510 socktuples = calloc(nalloc, sizeof (sof_socktuple_t)); in parse_filter_params()
522 if (tupcnt == nalloc) { in parse_filter_params()
525 nalloc *= 2; in parse_filter_params()
527 nalloc * sizeof (sof_socktuple_t)); in parse_filter_params()
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusba_bos.c114 uint_t ncaps, nalloc; in usba_bos_save() local
154 nalloc = ncaps; in usba_bos_save()
155 bos = kmem_zalloc(sizeof (usb_bos_t) * nalloc, KM_SLEEP); in usba_bos_save()
213 ud->usb_bos_nalloc = nalloc; in usba_bos_save()
220 kmem_free(bos, sizeof (usb_bos_t) * nalloc); in usba_bos_save()
/illumos-gate/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c664 int i = 0, nalloc = 2, len = nalloc * sizeof (*fi); in show_sockfilters() local
668 fi = calloc(nalloc, sizeof (*fi)); in show_sockfilters()
681 if (fi->fi_pos >= nalloc) { in show_sockfilters()
684 nalloc = fi->fi_pos + 1; in show_sockfilters()
685 if (nalloc > MAXNALLOC) in show_sockfilters()
687 len = nalloc * sizeof (*fi); in show_sockfilters()
688 new = realloc(fi, nalloc * sizeof (*fi)); in show_sockfilters()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmprofile.c40 #define PFNALLOC(pf) ((pf)->data.data.nalloc)
56 Vmulong_t nalloc; /* number of alloc calls */ member
363 reg Vmulong_t nalloc, alloc, nfree, free; local
377 alloc = free = nalloc = nfree = 0;
396 nalloc += PFNALLOC(pf);
408 bufp = pfsummary(bufp,nalloc,alloc,nfree,free,0,0);
427 alloc = free = nalloc = nfree = 0;
431 nalloc += PFNALLOC(pf);
439 bufp = pfsummary(bufp,nalloc,alloc,nfree,free,0,0);
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_intr.c507 unsigned int nalloc; in sfxge_intr_init() local
627 nalloc = pow2_le(sip->si_nalloc); in sfxge_intr_init()
633 while (--index >= nalloc) { in sfxge_intr_init()
640 sip->si_nalloc = nalloc; in sfxge_intr_init()
641 DTRACE_PROBE1(nalloc, unsigned int, sip->si_nalloc); in sfxge_intr_init()
/illumos-gate/usr/src/lib/libpcsc/common/
H A Dlibpcsc.c351 uint32_t len, ulen, npaths, nalloc, off, i; in SCardListReaders() local
376 npaths = nalloc = 0; in SCardListReaders()
404 if (npaths == nalloc) { in SCardListReaders()
407 nalloc += 8; in SCardListReaders()
408 tmp = reallocarray(readers, nalloc, sizeof (char *)); in SCardListReaders()
/illumos-gate/usr/src/test/nvme-tests/tests/libnvme/
H A Dns-disc.c335 uint32_t nbd = 0, nni = 0, nact = 0, nalloc = 0, nns = 0; in main() local
359 nalloc++; in main()
394 if (!ns_disc_count(ctrl, NVME_NS_DISC_F_ALLOCATED, nalloc)) { in main()
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Dutil.c194 (struct q_node *)qp->nalloc(sizeof (struct q_node)); in queue_add()
252 newqp->nalloc = nodealloc; in new_queue()
H A Dutil.h77 void *(*nalloc)(size_t); member
/illumos-gate/usr/src/cmd/mailx/
H A Dnames.c52 static struct name *nalloc(char str[]);
68 nalloc(char str[]) in nalloc() function
133 t = nalloc(nbuf); in extract()
470 np = nalloc(cp); in gexpand()
/illumos-gate/usr/src/uts/common/sys/
H A Dkobj.h150 int nalloc; member
/illumos-gate/usr/src/cmd/dc/
H A Ddc.h165 char *nalloc(char *, unsigned int);
H A Ddc.c2177 ptr = nalloc(hptr->beg, (unsigned)size); in copy()
2180 if ((ptr = nalloc(hptr->beg, (unsigned)size)) == NULL) { in copy()
2416 nalloc(char *p, unsigned int nbytes) in nalloc() function
/illumos-gate/usr/src/cmd/mdb/common/modules/libc/
H A Dlibc.c1177 uint_t nalloc; in d_tsd() local
1179 if (mdb_vread(&nalloc, sizeof (nalloc), in d_tsd()
1184 if (key < nalloc) { in d_tsd()
/illumos-gate/usr/src/uts/common/os/
H A Dfio.c324 int nalloc = 0; in flist_nalloc() local
330 nalloc += fip->fi_list[fd >> 1].uf_alloc; in flist_nalloc()
332 return (nalloc); in flist_nalloc()
H A Dkstat_fr.c182 kstat_named_t nalloc; member
888 system_pages_kstat.nalloc.value.ul = kobj_stat.nalloc; in system_pages_kstat_update()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprvnops.c5220 ulong_t nalloc; in rebuild_objdir() local
5231 if ((nalloc = avl_numnodes(&as->a_segtree)) == 0 || in rebuild_objdir()
5239 nalloc = (nalloc + 0xf) & ~0xf; /* multiple of 16 */ in rebuild_objdir()
5240 dir = kmem_zalloc(nalloc * sizeof (vnode_t *), KM_SLEEP); in rebuild_objdir()
5254 ASSERT(nentries < nalloc); in rebuild_objdir()
5262 as->a_sizedir = nalloc; in rebuild_objdir()
5319 kmem_free(dir, nalloc * sizeof (vnode_t *)); in rebuild_objdir()
/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj.c4067 kobj_stat.nalloc += size; in kobj_alloc()