Searched refs:nalloc (Results 1 - 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/cmd/lp/lib/access/
H A Dloadaccess.c124 register size_t nalloc, local
141 nalloc = ACC_MAX_GUESS;
142 list = (char **)Malloc((nalloc + 1) * sizeof(char *));
157 if (nlist >= nalloc) {
158 nalloc += ACC_MAX_GUESS;
161 (nalloc + 1) * sizeof(char *)
187 if (nlist != nalloc) {
/illumos-gate/usr/src/cmd/lp/lib/filters/
H A Dloadfilters.c62 size_t nalloc; local
65 nalloc = nfilters;
68 nalloc = FL_MAX_GUESS;
78 filters = (_FILTER *)Malloc((nalloc + 1) * sizeof(_FILTER));
96 if (++nfilters > nalloc) {
97 nalloc = nfilters;
100 (nalloc + 1) * sizeof(_FILTER)
159 if (nfilters != nalloc) {
/illumos-gate/usr/src/cmd/lvm/rpc.metamedd/
H A Dmed_hash.c87 (*cp)->bp[i].nalloc = 0;
130 if (bp->nent >= bp->nalloc) {
131 if (bp->nalloc == 0) {
137 "realloc(%d) bucket=%d\n", bp->nalloc + cp->bsz,
142 (bp->nalloc + cp->bsz));
146 (sizeof (*bp->itempp) * bp->nalloc));
149 (sizeof (*bp->itempp) * bp->nalloc));
162 bp->nalloc += cp->bsz;
199 for (*bidx = 0; *bidx < cp->hsz && (cp->bp[*bidx].nalloc == 0 ||
229 *bidx < cp->hsz && (cp->bp[*bidx].nalloc
[all...]
H A Dmed_hash.h45 int nalloc; member in struct:bucket_t
/illumos-gate/usr/src/lib/libpkg/common/
H A Dnhash.c122 if (bp->nent >= bp->nalloc) {
123 if (bp->nalloc == 0) {
130 bp->nalloc + cp->bsz,
135 (bp->nalloc + cp->bsz))) != NULL) {
137 (sizeof (*bp->itempp) * bp->nalloc));
140 (sizeof (*bp->itempp) * bp->nalloc));
153 bp->nalloc += cp->bsz;
H A Dnhash.h50 int nalloc; member in struct:bucket_t
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevpolicy.c153 int nalloc = 0, cnt = 0; local
173 if (cnt >= nalloc) {
174 nalloc += PLCY_CHUNK;
175 mem = realloc(mem, nalloc * devplcysys_sz);
178 nalloc * devplcysys_sz);
/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 * sizeo
[all...]
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_mem.h56 int nalloc; /* Number of allocates */ member in struct:nsc_mem_s
H A Dnsc_mem.c283 mp->nalloc -= mp->nfree;
462 mem->nalloc++;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsoconfig.c421 size_t tupcnt, nalloc; local
509 nalloc = 4;
510 socktuples = calloc(nalloc, sizeof (sof_socktuple_t));
522 if (tupcnt == nalloc) {
525 nalloc *= 2;
527 nalloc * sizeof (sof_socktuple_t));
/illumos-gate/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c689 int i = 0, nalloc = 2, len = nalloc * sizeof (*fi); local
692 fi = calloc(nalloc, sizeof (*fi));
705 if (fi->fi_pos >= nalloc) {
708 nalloc = fi->fi_pos + 1;
709 if (nalloc > MAXNALLOC)
711 len = nalloc * sizeof (*fi);
712 new = realloc(fi, nalloc * sizeof (*fi));
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Dutil.h79 void *(*nalloc)(size_t); member in struct:q_head
H A Dutil.c196 (struct q_node *)qp->nalloc(sizeof (struct q_node));
254 newqp->nalloc = nodealloc;
/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmprofile.c40 #define PFNALLOC(pf) ((pf)->data.data.nalloc)
56 Vmulong_t nalloc; /* number of alloc calls */ member in struct:_pfdata_s
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.c215 "bus_enable: unknown intr type (si_type=%d nalloc=%d)",
237 " err=%d (h=%p idx=%d nalloc=%d)",
251 " err=%d (h=%p idx=%d nalloc=%d)",
271 " err=%d (table=%p nalloc=%d)",
283 " err=%d (h=%p idx=%d nalloc=%d)",
306 " failed err=%d (h=%p idx=%d nalloc=%d)",
328 " failed err=%d (h=%p idx=%d nalloc=%d)",
357 " failed err=%d (table=%p nalloc=%d)",
367 " failed err=%d (h=%p idx=%d nalloc=%d)",
383 " failed err=%d (h=%p idx=%d nalloc
507 unsigned int nalloc; local
[all...]
/illumos-gate/usr/src/cmd/mailx/
H A Dnames.c51 static struct name *nalloc(char str[]);
67 nalloc(char str[]) function
132 t = nalloc(nbuf);
469 np = nalloc(cp);
/illumos-gate/usr/src/uts/common/sys/
H A Dkobj.h140 int nalloc; member in struct:__anon8038
/illumos-gate/usr/src/cmd/mdb/common/modules/nsctl/
H A Dnsctl.c1900 mp->nalloc, mp->nfree);
1920 if (type_mem[i].nalloc || type_mem[i].hwm) {
1959 if (!mem.nalloc && !mem.hwm && !v_opt)
1976 mem.nalloc, mem.nfree, mem.base);
1981 mp->nalloc += mem.nalloc;
/illumos-gate/usr/src/cmd/dc/
H A Ddc.h167 char *nalloc(char *, unsigned int);
H A Ddc.c2179 ptr = nalloc(hptr->beg, (unsigned)size);
2182 if ((ptr = nalloc(hptr->beg, (unsigned)size)) == NULL) {
2418 nalloc(char *p, unsigned int nbytes) function
/illumos-gate/usr/src/cmd/mdb/common/modules/libc/
H A Dlibc.c1121 uint_t nalloc; local
1123 if (mdb_vread(&nalloc, sizeof (nalloc),
1128 if (key < nalloc) {
/illumos-gate/usr/src/uts/common/os/
H A Dfio.c322 int nalloc = 0; local
328 nalloc += fip->fi_list[fd >> 1].uf_alloc;
330 return (nalloc);
H A Dkstat_fr.c182 kstat_named_t nalloc; member in struct:__anon370
203 { "nalloc", KSTAT_DATA_ULONG },
884 system_pages_kstat.nalloc.value.ul = kobj_stat.nalloc;
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprvnops.c4864 ulong_t nalloc; local
4875 if ((nalloc = avl_numnodes(&as->a_segtree)) == 0 ||
4883 nalloc = (nalloc + 0xf) & ~0xf; /* multiple of 16 */
4884 dir = kmem_zalloc(nalloc * sizeof (vnode_t *), KM_SLEEP);
4898 ASSERT(nentries < nalloc);
4906 as->a_sizedir = nalloc;
4963 kmem_free(dir, nalloc * sizeof (vnode_t *));

Completed in 157 milliseconds

12