Searched refs:nbytes (Results 1 - 25 of 354) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/pools/poolstat/
H A Dpoolstat_utils.c38 Realloc(void *ptr, size_t nbytes) argument
40 if ((ptr = realloc(ptr, nbytes)))
48 Zalloc(size_t nbytes) argument
50 return (memset(Realloc(NULL, nbytes), 0, nbytes));
H A Dpoolstat_utils.h38 #define REALLOC(p, nbytes) Realloc((p), (nbytes))
39 #define ZALLOC(nbytes) Zalloc((nbytes))
/illumos-gate/usr/src/tools/ctf/dwarf/common/
H A Dpro_encode_nm.h44 int _dwarf_pro_encode_leb128_nm(Dwarf_Unsigned val, int *nbytes,
47 int _dwarf_pro_encode_signed_leb128_nm(Dwarf_Signed value, int *nbytes,
H A Dpro_section.h84 it will see if there's enoungh space for nbytes in current
89 unsigned long nbytes);
91 #define GET_CHUNK(dbg,sectno,ptr,nbytes,error) \
93 (ptr) = _dwarf_pro_buffer((dbg),(sectno),(nbytes)); \
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dalloc.h40 void *alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line);
41 void *alloc_malloc(size_t nbytes, const char *fname, int line);
49 #define MALLOC(nbytes) alloc_malloc(nbytes, __FILE__, __LINE__)
50 #define REALLOC(ptr, nbytes) alloc_realloc(ptr, nbytes, __FILE__, __LINE__)
56 #define MALLOC(nbytes) alloc_malloc(nbytes, "???", __LINE__)
57 #define REALLOC(ptr, nbytes) alloc_realloc(ptr, nbytes, "
[all...]
H A Dalloc.c70 alloc_malloc(size_t nbytes, const char *fname, int line) argument
72 void *retval = malloc(nbytes);
78 stats_counter_add(Malloctotal, nbytes);
92 alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line) argument
94 void *retval = realloc(ptr, nbytes);
135 alloc_xmalloc(size_t nbytes) argument
139 retval = malloc(nbytes);
143 stats_counter_add(Malloctotal, nbytes);
/illumos-gate/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_messages.h44 extern void print_layout_volume_msg(char *type, uint64_t nbytes);
47 extern void print_layout_submirrors_msg(char *type, uint64_t nbytes, int nsubs);
51 extern void print_populate_volume_msg(char *type, uint64_t nbytes);
52 extern void print_populate_volume_ncomps_msg(char *type, uint64_t nbytes,
64 extern void print_hba_insufficient_space_msg(char *name, uint64_t nbytes);
65 extern void print_insufficient_capacity_msg(uint64_t nbytes);
H A Dlayout_stripe.h41 uint64_t nbytes,
46 uint64_t nbytes,
H A Dlayout_concat.h41 uint64_t nbytes,
46 uint64_t nbytes,
H A Dlayout_messages.c39 * FUNCTION: print_layout_volume_msg(char *type, uint64_t nbytes)
48 uint64_t nbytes)
52 (void) bytes_to_sizestr(nbytes, &spstr, universal_units, B_FALSE);
223 * FUNCTION: print_hba_insufficient_space_msg(char *name, uint64_t nbytes)
236 uint64_t nbytes)
240 (void) bytes_to_sizestr(nbytes, &spstr, universal_units, B_FALSE);
250 * FUNCTION: print_insufficient_capacity_msg(uint64_t nbytes)
252 * INPUT: nbytes - available capacity in bytes
255 * is insufficient space for a volume, only nbytes are
260 uint64_t nbytes)
46 print_layout_volume_msg( char *type, uint64_t nbytes) argument
234 print_hba_insufficient_space_msg( char *name, uint64_t nbytes) argument
259 print_insufficient_capacity_msg( uint64_t nbytes) argument
280 print_layout_submirrors_msg( char *type, uint64_t nbytes, int nsubs) argument
330 print_populate_volume_msg( char *type, uint64_t nbytes) argument
354 print_populate_volume_ncomps_msg( char *type, uint64_t nbytes, int ncomps) argument
[all...]
H A Dlayout_mirror.h42 uint64_t nbytes,
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_umem.c63 mdb_umem_handler(size_t nbytes, size_t align, uint_t flags) argument
77 (ulong_t)nbytes);
96 (ulong_t)nbytes);
104 ptr = memalign(align, nbytes);
106 ptr = malloc(nbytes);
126 die("failed to allocate %lu bytes -- terminating\n", (ulong_t)nbytes);
134 mdb_umem_gc_enter(void *ptr, size_t nbytes) argument
139 blkp->blk_size = nbytes;
167 mdb_alloc_align(size_t nbytes, size_t align, uint_t flags) argument
170 size_t obytes = nbytes;
199 mdb_alloc(size_t nbytes, uint_t flags) argument
205 mdb_zalloc(size_t nbytes, uint_t flags) argument
216 mdb_free(void *ptr, size_t nbytes) argument
230 mdb_free_align(void *ptr, size_t nbytes) argument
[all...]
H A Dmdb_value.c66 value_read(mdb_tgt_t *t, void *dst, size_t nbytes, uintptr_t addr) argument
79 size = nbytes;
82 nbytes = MIN(size, nbytes);
93 if (off + nbytes > sizeof (uintmax_t))
94 nbytes = sizeof (uintmax_t) - off;
96 if (nbytes != 0)
97 bcopy(src + off, dst, nbytes);
99 return (nbytes);
104 value_write(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_ argument
[all...]
/illumos-gate/usr/src/lib/libwanbootutil/common/
H A Dwbio.c42 ssize_t nbytes; local
45 for (nwritten = 0; nwritten < buflen; nwritten += nbytes) {
46 nbytes = write(fd, &buf[nwritten], buflen - nwritten);
47 if (nbytes <= 0)
62 ssize_t nbytes; local
65 for (nread = 0; nread < buflen; nread += nbytes) {
66 nbytes = read(fd, &buf[nread], buflen - nread);
67 if (nbytes <= 0)
/illumos-gate/usr/src/lib/libbsdmalloc/common/
H A Dllib-lbsdmalloc34 char *malloc(unsigned nbytes);
36 char *realloc(char *cp, unsigned nbytes);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/speculation/
H A Derr.D_ACT_SPEC.SpeculateWithCopyOut.d43 size_t nbytes;
48 nbytes = 10;
57 copyout(buf, addr, nbytes);
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dalloc.c90 alloc_malloc(size_t nbytes, const char *fname, int line) argument
94 ASSERT(nbytes > 0);
96 retval = fmd_hdl_alloc(Hdl, nbytes + HDRSIZ, FMD_SLEEP);
100 bcopy((void *)&nbytes, (void *)retval, sizeof (nbytes));
104 stats_counter_add(Malloctotal, nbytes);
109 totalcount += nbytes + HDRSIZ;
119 alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line) argument
121 void *retval = alloc_malloc(nbytes, fname, line);
129 bcopy(ptr, retval, (osize < nbytes)
190 alloc_xmalloc(size_t nbytes) argument
[all...]
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmemalign.c35 * memalign(align,nbytes)
48 * if nbytes = 0,
56 memalign(align, nbytes)
58 uint nbytes;
72 if (nbytes == 0 || misaligned(align)) {
83 nbytes = roundup(nbytes, ALIGNSIZ);
84 reqsize = nbytes + align + SMALLEST_BLK;
130 nbytes += ALIGNSIZ;
131 frag_size = blksize - nbytes;
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_echo.c58 unsigned short nbytes; local
77 nbytes = sr->smb_bcc;
78 data = smb_srm_zalloc(sr, nbytes);
80 if (smb_mbc_decodef(&sr->smb_data, "#c", nbytes, data))
92 MBC_INIT(&reply, SMB_HEADER_ED_LEN + 10 + nbytes);
109 nbytes, nbytes, data);
/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dvalloc.c45 * memalign(align,nbytes) - do nothing
50 memalign(size_t align, size_t nbytes) argument
/illumos-gate/usr/src/ucbcmd/sum/
H A Dsum.c30 long long nbytes; local
45 nbytes = 0;
47 nbytes++;
63 (nbytes + BUFSIZ - 1) / BUFSIZ);
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dwcsnrtombs.c65 size_t nbytes; local
69 nbytes = 0;
77 return (nbytes + nb - 1);
79 nbytes += nb;
81 return (nbytes);
113 return (nbytes + nb - 1);
118 nbytes += nb;
121 return (nbytes);
/illumos-gate/usr/src/cmd/logadm/
H A Derr.h61 #define MALLOC(nbytes) err_malloc(nbytes, __FILE__, __LINE__)
62 void *err_malloc(int nbytes, const char *fname, int line);
64 #define REALLOC(ptr, nbytes) err_realloc(ptr, nbytes, __FILE__, __LINE__)
65 void *err_realloc(void *ptr, int nbytes, const char *fname, int line);
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dheap_kmem.c123 void kmem_free(void *ptr, size_t nbytes);
150 size_t nbytes; member in struct:kmem_info::need_to_free
441 kmem_alloc(size_t nbytes, int kmflag) argument
452 printf("kmem_alloc(nbytes 0x%lx)\n", nbytes);
455 if (nbytes == 0) {
460 if (nbytes < SMALLEST_BLK) {
461 printf("illegal kmem_alloc call for %lx bytes\n", nbytes);
471 if (mweight(kmem_info.free_root) <= nbytes) {
475 if (!morecore(nbytes)) {
602 kmem_free(void *ptr, size_t nbytes) argument
734 size_t nbytes; local
776 morecore(size_t nbytes) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmemalign.c40 * memalign(align, nbytes)
53 * if nbytes = 0,
61 memalign(size_t align, size_t nbytes) argument
81 if (nbytes == 0 || _misaligned(align) || align == 0 ||
98 if (nbytes > MAX_MALLOC) {
102 ROUND(nbytes);
103 if (nbytes < MINSIZE)
104 nbytes = MINSIZE;
108 reqsize = nbytes + align + (MINSIZE + WORDSIZE);
111 if (reqsize < nbytes) {
[all...]

Completed in 108 milliseconds

1234567891011>>