/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zcp.c | 726 int64_t allocsize = *allocbuf; in zcp_lua_alloc() local 727 ASSERT3S(allocsize, >, 0); in zcp_lua_alloc() 728 ASSERT3S(allocargs->aa_alloc_remaining + allocsize, <=, in zcp_lua_alloc() 730 allocargs->aa_alloc_remaining += allocsize; in zcp_lua_alloc() 731 kmem_free(allocbuf, allocsize); in zcp_lua_alloc() 736 int64_t allocsize = nsize + sizeof (int64_t); in zcp_lua_alloc() local 739 (allocsize <= 0 || in zcp_lua_alloc() 740 allocsize > allocargs->aa_alloc_remaining)) { in zcp_lua_alloc() 744 allocbuf = kmem_alloc(allocsize, flags); in zcp_lua_alloc() 748 allocargs->aa_alloc_remaining -= allocsize; in zcp_lua_alloc() [all …]
|
/illumos-gate/usr/src/lib/libmlrpc/common/ |
H A D | ndr_heap.c | 72 size_t allocsize = sizeof (ndr_heap_t) + NDR_HEAP_BLKSZ; in ndr_heap_create() local 74 if ((heap = malloc(allocsize)) == NULL) in ndr_heap_create() 84 heap->top = base + allocsize; in ndr_heap_create()
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | symtab.c | 473 #define allocsize(size) (((size) + 2 + STRTBLINCR - 1) & ~(STRTBLINCR - 1)) macro 475 static struct strhdr strtblhdr[allocsize(MAXCOMPLEXLEN) / STRTBLINCR]; 497 as = allocsize(len); in savename() 528 tp = &strtblhdr[allocsize(strlen(name)) / STRTBLINCR]; in freename() 580 (size_t)allocsize(ep->e_namlen), fp); in dumpsymtable() 596 stroff += allocsize(ep->e_namlen); in dumpsymtable()
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | nfs_cast.c | 512 int i, size = 0, allocsize = 10; local 516 buffer = (struct sm *)malloc(allocsize * sizeof (struct sm)); 537 if (size >= allocsize) { 538 allocsize += 10; 540 allocsize * sizeof (struct sm));
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | gic_opt.c | 378 size_t allocsize; in krb5_get_init_creds_opt_get_pa() local 394 allocsize = in krb5_get_init_creds_opt_get_pa() 396 p = malloc(allocsize); in krb5_get_init_creds_opt_get_pa()
|
/illumos-gate/usr/src/lib/libnsl/ipsec/ |
H A D | algs.c | 669 size_t allocsize = sizeof (int); in duplicate_intarr() local 676 allocsize += sizeof (int); in duplicate_intarr() 680 iwalker = malloc(allocsize); in duplicate_intarr() 682 (void) memcpy(iwalker, orig, allocsize); in duplicate_intarr()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | exec.c | 149 size_t allocsize; in exece() local 158 allocsize = strlen(vp->v_path) + 1; in exece() 159 path = kmem_alloc(allocsize, KM_NOSLEEP); in exece() 165 bcopy(vp->v_path, path, allocsize); in exece() 175 allocsize = 20; in exece() 176 path = kmem_alloc(allocsize, KM_NOSLEEP); in exece() 181 (void) snprintf(path, allocsize, "/dev/fd/%d", fd); in exece() 186 kmem_free(path, allocsize); in exece()
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj.c | 702 int i, lsize, osize, nsize, allocsize; in load_exec() local 770 allocsize = MAXPATHLEN; in load_exec() 792 if (nsize + 1 > allocsize) { in load_exec() 797 kobj_free(mp->depends_on, allocsize); in load_exec() 799 allocsize += MAXPATHLEN; in load_exec() 814 kobj_free(mp->depends_on, allocsize); in load_exec() 817 kobj_free(mp->depends_on, allocsize); in load_exec() 1689 if (nsize + 1 > allocsize) { in process_dynamic() 1694 kobj_free(depstr, allocsize); in process_dynamic() 1697 allocsize += MAXPATHLEN; in process_dynamic() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_export.c | 1254 size_t allocsize; in exportfs() local 1542 allocsize = kex->ex_seccnt * SIZEOF_STRUCT(secinfo, model); in exportfs() 1543 sp = kmem_zalloc(allocsize, KM_SLEEP); in exportfs() 1544 if (copyin(kex->ex_secinfo, sp, allocsize)) { in exportfs() 1545 kmem_free(sp, allocsize); in exportfs() 1588 kmem_free(sp, allocsize); in exportfs() 1590 allocsize = allocsize2; in exportfs()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ipsecesp.c | 2771 uint_t allocsize = sizeof (*samsg); in esp_register_out() local 2796 allocsize += sens_len; in esp_register_out() 2819 allocsize += (num_aalgs * sizeof (*saalg)); in esp_register_out() 2820 allocsize += sizeof (*sasupp_auth); in esp_register_out() 2828 allocsize += (num_ealgs * sizeof (*saalg)); in esp_register_out() 2829 allocsize += sizeof (*sasupp_encr); in esp_register_out() 2831 keysock_out_mp->b_cont = allocb(allocsize, BPRI_HI); in esp_register_out() 2838 pfkey_msg_mp->b_wptr += allocsize; in esp_register_out() 2944 samsg->sadb_msg_len = SADB_8TO64(allocsize); in esp_register_out()
|
H A D | ipsecah.c | 533 uint_t allocsize = sizeof (*samsg); in ah_register_out() local 554 allocsize += sens_len; in ah_register_out() 581 allocsize += (num_aalgs * sizeof (*saalg)); in ah_register_out() 582 allocsize += sizeof (*sasupp); in ah_register_out() 584 mp->b_cont = allocb(allocsize, BPRI_HI); in ah_register_out() 591 mp->b_cont->b_wptr += allocsize; in ah_register_out() 650 samsg->sadb_msg_len = SADB_8TO64(allocsize); in ah_register_out()
|
H A D | sadb.c | 5178 allocsize = sizeof (*prop) + ncombs * sizeof (*comb) + 5180 mp = allocb(allocsize, BPRI_HI); 5187 allocsize -= sizeof (*prop); 5309 allocsize -= sizeof (*comb); 5311 ASSERT3S(allocsize, >=, sizeof (sadb_x_kmc_t)); 5312 if (allocsize <= sizeof (sadb_x_kmc_t)) 5343 int allocsize, numecombs = 0, numalgdescs = 0; local 5348 allocsize = sizeof (*eprop); 5384 allocsize += numecombs * sizeof (sadb_x_ecomb_t) + 5386 mp = allocb(allocsize, BPRI_HI); [all …]
|