/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip_smbios.c | 496 int bufsz = 0; local 531 bufsz += chip_strlen(blank) + 542 bufsz += chip_strlen(label) + chip_strlen(delim) + 545 buf = topo_mod_alloc(mod, bufsz); 549 (void) strlcpy(buf, label, bufsz); 551 (void) strlcat(buf, delim, bufsz); 560 bufsz); 564 bufsz); 567 (void) strlcat(buf, blank, bufsz); 568 (void) strlcat(buf, dimm_bank, bufsz); [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_kmod.c | 158 size_t bufsz; local 161 if ((rc = nvlist_pack(shrlist, &shrbuf, &bufsz, NV_ENCODE_XDR, 0)) != 0) 164 ioclen = sizeof (smb_ioc_share_t) + bufsz; 167 ioc->shrlen = bufsz; 168 bcopy(shrbuf, ioc->shr, bufsz); 183 size_t bufsz; local 186 if ((rc = nvlist_pack(shrlist, &shrbuf, &bufsz, NV_ENCODE_XDR, 0)) != 0) 189 ioclen = sizeof (smb_ioc_share_t) + bufsz; 192 ioc->shrlen = bufsz; 193 bcopy(shrbuf, ioc->shr, bufsz); [all...] |
H A D | smb_cfg.c | 367 smb_config_getstr(smb_cfg_id_t id, char *cbuf, int bufsz) argument 381 return (smb_config_get_idmap_preferred_dc(cbuf, bufsz)); 398 (void) strlcpy(cbuf, tmp, bufsz); 407 cbuf, bufsz); 539 smb_config_get(smb_cfg_id_t id, char *cbuf, int bufsz) argument 548 return (smb_config_getstr(id, cbuf, bufsz)); 553 (void) snprintf(cbuf, bufsz, "%lld", cint); 558 (void) strlcpy(cbuf, "true", bufsz); 560 (void) strlcpy(cbuf, "false", bufsz); 857 smb_config_get_idmap_preferred_dc(char *cbuf, int bufsz) argument 1043 smb_config_get_execinfo(char *map, char *unmap, size_t bufsz) argument [all...] |
/illumos-gate/usr/src/lib/libreparse/common/ |
H A D | fs_reparse_lib.c | 145 * of the buffer provided via *bufsz. 147 * if ok return 0 and *bufsz is updated to contain the actual length of 149 * EOVERFLOW; results do not fit in the buffer, *bufsz will be updated 154 size_t *bufsz) 159 (bufsz == NULL)) 164 return (ops->rpo_deref(svc_type, svc_data, buf, bufsz)); 210 size_t bufsz; local 216 bufsz = SYMLINK_MAX; /* no need to mess around */ 217 if ((buf = malloc(bufsz)) == NULL) 222 err = ops->rpo_form(svc_type, svc_data, buf, &bufsz); 153 reparse_deref(const char *svc_type, const char *svc_data, char *buf, size_t *bufsz) argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/ |
H A D | efinet.c | 150 UINTN bufsz; local 158 bufsz = sizeof(buf); 159 status = net->Receive(net, 0, &bufsz, buf, 0, 0, 0); 167 if (bufsz > len) 168 bufsz = len; 169 bcopy(buf, pkt, bufsz); 170 return (bufsz);
|
/illumos-gate/usr/src/uts/intel/io/ |
H A D | ucode_drv.c | 151 size_t bufsz = NCPU * sizeof (*revp); local 172 revp = kmem_zalloc(bufsz, KM_SLEEP); 174 kmem_free(revp, bufsz); 183 kmem_free(revp, bufsz); 187 kmem_free(revp, bufsz);
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | msgsys.c | 120 msgsnap(int msqid, void *buf, size_t bufsz, long msgtyp) argument 122 return (syscall(SYS_msgsys, MSGSNAP, msqid, buf, bufsz, msgtyp));
|
/illumos-gate/usr/src/uts/intel/io/drm/ |
H A D | radeon_io32.h | 128 int bufsz; member in struct:drm_radeon_kcmd_buffer_32
|
/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | util.c | 626 int bufsz = BUFSZ; local 647 bufsz); 654 if (bufsz > 1) { 655 bufsz = 1; 665 for (i = 0; i < bufsz; i++) { 676 /* bummer, need to grab another bufsz characters */ 677 offset += bufsz; 679 ptr = (char *) realloc(ptr, offset + bufsz);
|
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/amd64/ |
H A D | framebuffer.c | 194 UINTN bufsz; local 197 bufsz = 0; 198 status = BS->LocateHandle(ByProtocol, &uga_guid, NULL, &bufsz, NULL); 201 buf = malloc(bufsz); 202 status = BS->LocateHandle(ByProtocol, &uga_guid, NULL, &bufsz, buf); 207 bufsz /= sizeof(EFI_HANDLE); 211 for (hp = buf; hp < buf + bufsz; hp++) {
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | proc_arg.c | 437 int bufsz; local 482 bufsz = prheader.pr_nent * prheader.pr_entsize; 483 if ((buf = malloc(bufsz)) == NULL) { 489 if (pread(fd, buf, bufsz, sizeof (prheader)) != bufsz) {
|
/illumos-gate/usr/src/uts/common/fs/sharefs/ |
H A D | sharetab.c | 51 bufsz + 1, /* Add one for extra NUL */ \ 333 size_t bufsz; local 344 bufsz = iMaxLen; 383 buf = kmem_zalloc(bufsz + 1, KM_SLEEP); 426 kmem_free(buf, bufsz + 1);
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 536 char *buf, int bufsz, int flags) 555 (void) strlcpy(buf, str, bufsz); 563 (void) snprintf(buf, bufsz, "%s%d", devtype, *nump); 568 (void) snprintf(buf, bufsz, "%s%d.%s%d", 597 char *buf, int bufsz) 605 (void) strlcpy(buf, IOB_PRE, bufsz); 613 (void) snprintf(buf, bufsz, "%s%llx", IOB_PRE, serid); 627 (void) snprintf(buf, bufsz, "%s%s", IOB_PRE, idstr); 688 int bufsz; local 710 bufsz 535 pci_cfg_ap_node(minor_t pci_dev, di_node_t node, di_prom_handle_t ph, char *buf, int bufsz, int flags) argument 596 pci_cfg_iob_name(di_minor_t minor, di_node_t node, di_prom_handle_t ph, char *buf, int bufsz) argument [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | log_sysevent.c | 1271 uint32_t *bufsz, uint32_t class_index) 1325 if (nvlsize > *bufsz) { 1327 *bufsz = nvlsize; 1346 size_t bufsz; local 1361 bufsz = kdata.ps_buflen; 1362 if (bufsz > 0) { 1363 databuf = kmem_alloc(bufsz, KM_SLEEP); 1364 if (copyin(udatabuf, databuf, bufsz) == -1) { 1366 kmem_free(databuf, bufsz); 1378 if (bufsz > 1270 get_registration(sysevent_channel_descriptor_t *chan, char *databuf, uint32_t *bufsz, uint32_t class_index) argument [all...] |
H A D | audit_zone.c | 70 kctx->auk_queue.bufsz = AQ_BUFSZ; 80 kmem_alloc(AU_DBUF_HEADER + kctx->auk_queue.bufsz, KM_SLEEP);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | sysevent.c | 480 size_t bufsz; local 491 bufsz = uargs.packednvl.len; 493 if (bufsz == 0) 496 if (bufsz > EVCH_MAX_DATA_SIZE) 499 buf = kmem_alloc(bufsz, KM_SLEEP); 502 bufsz) != 0 || 503 nvlist_unpack(buf, bufsz, &nvl, KM_SLEEP) != 0) { 504 kmem_free(buf, bufsz); 508 kmem_free(buf, bufsz);
|
/illumos-gate/usr/src/lib/libc/port/aio/ |
H A D | aio.c | 318 aioread(int fd, caddr_t buf, int bufsz, off_t offset, int whence, argument 321 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOREAD)); 325 aiowrite(int fd, caddr_t buf, int bufsz, off_t offset, int whence, argument 328 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOWRITE)); 333 aioread64(int fd, caddr_t buf, int bufsz, off64_t offset, int whence, argument 336 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOAREAD64)); 340 aiowrite64(int fd, caddr_t buf, int bufsz, off64_t offset, int whence, argument 343 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOAWRITE64)); 348 _aiorw(int fd, caddr_t buf, int bufsz, offset_t offset, int whence, argument 409 fd, buf, bufsz, loffse [all...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_error.c | 2057 size_t bufsz; local 2061 bufsz = sizeof (buf); 2066 return (void_to_str(ep, buf, bufsz)); 2068 return (sys_to_str(ep, buf, bufsz)); 2070 return (rpc_to_str(ep, buf, bufsz)); 2072 return (dev_to_str(ep, buf, bufsz)); 2074 return (use_to_str(ep, buf, bufsz)); 2076 return (md_to_str(ep, buf, bufsz)); 2078 return (comp_to_str(ep, buf, bufsz)); 2080 return (hsp_to_str(ep, buf, bufsz)); 2129 size_t bufsz = sizeof (buf); local [all...] |
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | sun4x_standalloc.c | 116 impl_name(char *buf, size_t bufsz) argument 121 if (len == 0 || len >= bufsz)
|
/illumos-gate/usr/src/uts/common/tnf/ |
H A D | tnf.c | 601 size_t bufsz; local 606 bufsz = roundup((size_t)arg, PAGESIZE); 611 /* bug fix #4057599 if (bufsz > (physmem << PAGESHIFT) / 2) */ 612 if (btop(bufsz) > (physmem / 2)) 614 if (bufsz < TNF_TRACE_FILE_MIN) 615 bufsz = TNF_TRACE_FILE_MIN; 618 tnf_buf = kmem_zalloc(bufsz, KM_SLEEP); 621 tnf_buf = segkp_get(segkp, (int)bufsz, 627 tnf_trace_file_size = bufsz;
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | acctctl.h | 199 extern int acctctl(int cmd, void *buf, size_t bufsz);
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_strtab.c | 62 dt_strtab_create(size_t bufsz) argument 67 assert(bufsz != 0); 83 sp->str_bufsz = bufsz;
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | automount.c | 103 int ret = 0, bufsz = 0; local 120 bufsz = 6; 122 SCF_TYPE_INTEGER, AUTOMOUNTD, &bufsz); 130 bufsz = 6; 132 SCF_TYPE_BOOLEAN, AUTOMOUNTD, &bufsz);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_sa.c | 74 size_t bufsz; local 77 bufsz = zp->z_size; 78 if (bufsz + ZFS_OLD_ZNODE_PHYS_SIZE <= db->db_size) { 81 MIN((size_t)bufsz, uio->uio_resid), UIO_READ, uio); 87 MIN((size_t)bufsz, uio->uio_resid), UIO_READ, uio);
|
/illumos-gate/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3_util.c | 317 cpqary3_synccmd_alloc(cpqary3_t *cpqary3p, size_t bufsz) argument 324 if (bufsz > 0) { 345 dmabufva = cpqary3_alloc_phyctgs_mem(cpqary3p, bufsz, 353 bzero(dmabufva, bufsz); 379 memp->cmdlist_memaddr->SG[0].Len = (uint32_t)bufsz;
|