Home
last modified time | relevance | path

Searched refs:kbuf (Results 1 – 25 of 25) sorted by relevance

/titanic_41/usr/src/uts/common/io/
H A Dkstat.c68 void *kbuf = NULL; in read_kstat_data() local
119 kbuf = kmem_zalloc(kbufsize + 1, KM_NOSLEEP); in read_kstat_data()
120 if (kbuf == NULL) { in read_kstat_data()
129 if (kbuf != NULL) in read_kstat_data()
130 kmem_free(kbuf, kbufsize + 1); in read_kstat_data()
140 if (kbuf == NULL) in read_kstat_data()
141 kbuf = kmem_zalloc(kbufsize + 1, KM_NOSLEEP); in read_kstat_data()
142 if (kbuf == NULL) { in read_kstat_data()
145 error = KSTAT_SNAPSHOT(ksp, kbuf, KSTAT_READ); in read_kstat_data()
164 if (kbuf == NULL) in read_kstat_data()
[all …]
H A Ddevpool.c219 char *kbuf = NULL; in pool_ioctl() local
309 kbuf = pool_buf; in pool_ioctl()
314 kbuf = kmem_alloc(kbufsz, KM_NOSLEEP); in pool_ioctl()
315 if (kbuf == NULL) { in pool_ioctl()
319 ret = pool_pack_conf(kbuf, kbufsz, &size); in pool_ioctl()
341 ddi_copyout(kbuf, query.pq_io_buf, size, mode) != 0) in pool_ioctl()
346 kmem_free(kbuf, kbufsz); in pool_ioctl()
516 ret = nvlist_pack(list, &kbuf, &kbufsz, NV_ENCODE_NATIVE, 0); in pool_ioctl()
540 if (ddi_copyout(kbuf, propget.pp_i_buf, in pool_ioctl()
547 kmem_free(kbuf, kbufsz); in pool_ioctl()
/titanic_41/usr/src/uts/common/syscall/
H A Dgetcwd.c43 char *kbuf; in getcwd() local
55 kbuf = kmem_alloc(kbuflen, KM_SLEEP); in getcwd()
57 if (((err = dogetcwd(kbuf, kbuflen)) == 0) && in getcwd()
58 (copyout(kbuf, buf, strlen(kbuf) + 1) != 0)) in getcwd()
61 kmem_free(kbuf, kbuflen); in getcwd()
H A Dexacctsys.c68 getacct_callback(ac_info_t *unused, void *ubuf, size_t usize, void *kbuf, in getacct_callback() argument
73 if (ubuf != NULL && copyout(kbuf, ubuf, size) != 0) in getacct_callback()
177 void *kbuf; in putacct() local
183 kbuf = kmem_alloc(bufsize, KM_SLEEP); in putacct()
184 if (copyin(buf, kbuf, bufsize) != 0) { in putacct()
203 error = exacct_tag_proc(&acg->ac_proc, id, tkid, kbuf, in putacct()
210 error = exacct_tag_task(&acg->ac_task, tk, kbuf, in putacct()
222 kmem_free(kbuf, bufsize); in putacct()
H A Dacctctl.c150 void *kbuf; in ac_file_set() local
190 kbuf = kmem_zalloc(bufsz, KM_SLEEP); in ac_file_set()
191 if ((error = copyinstr((char *)ubuf, (char *)kbuf, bufsz, NULL)) != 0) { in ac_file_set()
192 kmem_free(kbuf, bufsz); in ac_file_set()
195 if (*((char *)kbuf) != '/') { in ac_file_set()
196 kmem_free(kbuf, bufsz); in ac_file_set()
206 namelen = strlen(kbuf) + 1; in ac_file_set()
208 (void) strcpy(namebuf, kbuf); in ac_file_set()
209 kmem_free(kbuf, bufsz); in ac_file_set()
H A Dtasksys.c262 void *kbuf; in tasksys_projlist() local
271 kbuf = pw.pw_buf = kmem_zalloc(bufsz, KM_SLEEP); in tasksys_projlist()
276 if (copyout(kbuf, buf, bufsz) == -1) in tasksys_projlist()
279 kmem_free(kbuf, bufsz); in tasksys_projlist()
H A Drctlsys.c778 char *kbuf; in rctlsys_lst() local
781 kbufsz = rctl_build_name_buf(&kbuf); in rctlsys_lst()
784 copyout(kbuf, ubuf, kbufsz) != 0) { in rctlsys_lst()
785 kmem_free(kbuf, kbufsz); in rctlsys_lst()
789 kmem_free(kbuf, kbufsz); in rctlsys_lst()
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dkexdhc.c50 u_char *kbuf, *hash; in kexdh_client() local
103 kbuf = xmalloc(klen); in kexdh_client()
104 kout = DH_compute_key(kbuf, dh_server_pub, dh); in kexdh_client()
106 dump_digest("shared secret", kbuf, kout); in kexdh_client()
110 BN_bin2bn(kbuf, kout, shared_secret); in kexdh_client()
111 memset(kbuf, 0, klen); in kexdh_client()
112 xfree(kbuf); in kexdh_client()
H A Dkexdhs.c49 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; in kexdh_server() local
89 kbuf = xmalloc(klen); in kexdh_server()
90 kout = DH_compute_key(kbuf, dh_client_pub, dh); in kexdh_server()
92 dump_digest("shared secret", kbuf, kout); in kexdh_server()
96 BN_bin2bn(kbuf, kout, shared_secret); in kexdh_server()
97 memset(kbuf, 0, klen); in kexdh_server()
98 xfree(kbuf); in kexdh_server()
H A Dkexgexs.c50 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; in kexgex_server() local
129 kbuf = xmalloc(klen); in kexgex_server()
130 kout = DH_compute_key(kbuf, dh_client_pub, dh); in kexgex_server()
132 dump_digest("shared secret", kbuf, kout); in kexgex_server()
136 BN_bin2bn(kbuf, kout, shared_secret); in kexgex_server()
137 memset(kbuf, 0, klen); in kexgex_server()
138 xfree(kbuf); in kexgex_server()
H A Dkexgexc.c50 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; in kexgex_client() local
148 kbuf = xmalloc(klen); in kexgex_client()
149 kout = DH_compute_key(kbuf, dh_server_pub, dh); in kexgex_client()
151 dump_digest("shared secret", kbuf, kout); in kexgex_client()
155 BN_bin2bn(kbuf, kout, shared_secret); in kexgex_client()
156 memset(kbuf, 0, klen); in kexgex_client()
157 xfree(kbuf); in kexgex_client()
H A Dkexgsss.c63 unsigned char *kbuf, *hash; in kexgss_server() local
174 kbuf = xmalloc(klen); in kexgss_server()
175 kout = DH_compute_key(kbuf, dh_client_pub, dh); in kexgss_server()
178 BN_bin2bn(kbuf, kout, shared_secret); in kexgss_server()
179 (void) memset(kbuf, 0, klen); in kexgss_server()
180 xfree(kbuf); in kexgss_server()
H A Dkexgssc.c69 unsigned char *kbuf; in kexgss_client() local
266 kbuf = xmalloc(klen); in kexgss_client()
267 kout = DH_compute_key(kbuf, dh_server_pub, dh); in kexgss_client()
270 BN_bin2bn(kbuf, kout, shared_secret); in kexgss_client()
271 (void) memset(kbuf, 0, klen); in kexgss_client()
272 xfree(kbuf); in kexgss_client()
/titanic_41/usr/src/uts/common/xen/io/
H A Devtchn_dev.c240 evtchn_port_t *kbuf; in evtchndrv_write() local
263 kbuf = sbuf; in evtchndrv_write()
265 kbuf = kmem_alloc(PAGESIZE, KM_SLEEP); in evtchndrv_write()
266 if ((rc = uiomove(kbuf, count, UIO_WRITE, uio)) != 0) in evtchndrv_write()
271 if ((kbuf[i] < NR_EVENT_CHANNELS) && in evtchndrv_write()
272 (port_user[kbuf[i]] == ep)) { in evtchndrv_write()
274 ec_unmask_evtchn(kbuf[i]); in evtchndrv_write()
280 if (kbuf != sbuf) in evtchndrv_write()
281 kmem_free(kbuf, PAGESIZE); in evtchndrv_write()
/titanic_41/usr/src/uts/common/fs/zut/
H A Dzut.c108 char *kbuf; in zut_readdir() local
117 kbuf = kmem_zalloc(zr->zr_buflen, KM_SLEEP); in zut_readdir()
159 aiov.iov_base = kbuf; in zut_readdir()
180 zr->zr_bytes = aiov.iov_base - kbuf; in zut_readdir()
183 error = ddi_copyout(kbuf, (void *)(uintptr_t)zr->zr_buf, in zut_readdir()
187 kmem_free(kbuf, zr->zr_buflen); in zut_readdir()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dldap_key_seq.c357 asn1buf kbuf; in asn1_decode_key() local
366 ret = asn1buf_imbed(&kbuf, &subbuf, length, seqindef); checkerr; in asn1_decode_key()
368 ret = decode_tagged_integer (&kbuf, 0, &lval); in asn1_decode_key()
372 ret = decode_tagged_octetstring (&kbuf, 1, &ival, in asn1_decode_key()
376 safe_syncbuf (&subbuf, &kbuf); in asn1_decode_key()
/titanic_41/usr/src/uts/common/ipp/
H A Dippctl.c604 char *kbuf; in ippctl_copyin() local
666 kbuf = kmem_zalloc(ubuflen, KM_SLEEP); in ippctl_copyin()
668 if (ddi_copyin(ubuf, (caddr_t)kbuf, ubuflen, mode) != 0) { in ippctl_copyin()
669 kmem_free(kbuf, ubuflen); in ippctl_copyin()
673 *kbufp = kbuf; in ippctl_copyin()
684 char *kbuf, in ippctl_copyout() argument
752 if (ddi_copyout((caddr_t)kbuf, ubuf, kbuflen, mode) != 0) in ippctl_copyout()
/titanic_41/usr/src/cmd/sendmail/src/
H A Dudb.c1239 char kbuf[MAXUDBKEY + 1]; local
1241 if (sm_strlcpy(kbuf, key->data, sizeof(kbuf)) >= sizeof(kbuf))
1243 name = kbuf;
/titanic_41/usr/src/uts/intel/io/drm/
H A Dradeon_state.c3073 char *kbuf = NULL; in radeon_cp_cmdbuf() local
3114 kbuf = drm_alloc(cmdbuf.bufsz, DRM_MEM_DRIVER); in radeon_cp_cmdbuf()
3115 if (kbuf == NULL) in radeon_cp_cmdbuf()
3117 if (DRM_COPY_FROM_USER(kbuf, (void *)cmdbuf.buf, in radeon_cp_cmdbuf()
3119 drm_free(kbuf, orig_bufsz, DRM_MEM_DRIVER); in radeon_cp_cmdbuf()
3122 cmdbuf.buf = kbuf; in radeon_cp_cmdbuf()
3132 drm_free(kbuf, orig_bufsz, DRM_MEM_DRIVER); in radeon_cp_cmdbuf()
3238 drm_free(kbuf, orig_bufsz, DRM_MEM_DRIVER); in radeon_cp_cmdbuf()
3245 drm_free(kbuf, orig_bufsz, DRM_MEM_DRIVER); in radeon_cp_cmdbuf()
/titanic_41/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_sata.c32 SATAcopy(pmcs_cmd_t *sp, void *kbuf, uint32_t amt) in SATAcopy() argument
38 (void) memcpy(bp->b_un.b_addr, kbuf, amt); in SATAcopy()
/titanic_41/usr/src/uts/common/os/
H A Dpool.c829 pool_pack_conf(void *kbuf, size_t kbufsz, size_t *asize) in pool_pack_conf() argument
841 if (kbuf == NULL || kbufsz == 0) in pool_pack_conf()
846 *asize = ea_pack_object(eo_system, kbuf, kbufsz); in pool_pack_conf()
H A Dzone.c4110 char *kbuf; in parse_rctls() local
4119 if ((kbuf = kmem_alloc(buflen, KM_NOSLEEP)) == NULL) in parse_rctls()
4121 if (copyin(ubuf, kbuf, buflen)) { in parse_rctls()
4125 if (nvlist_unpack(kbuf, buflen, &nvl, KM_SLEEP) != 0) { in parse_rctls()
4165 kmem_free(kbuf, buflen); in parse_rctls()
4204 char *kbuf; in parse_zfs() local
4212 if ((kbuf = kmem_alloc(buflen, KM_NOSLEEP)) == NULL) in parse_zfs()
4215 if (copyin(ubuf, kbuf, buflen) != 0) { in parse_zfs()
4216 kmem_free(kbuf, buflen); in parse_zfs()
4220 dataset = next = kbuf; in parse_zfs()
[all …]
/titanic_41/usr/src/cmd/auditconfig/
H A Dauditconfig.c1091 char kbuf[2048]; in do_chkaconf() local
1092 if (getauditflagschar(kbuf, &kmask, 0) < 0) { in do_chkaconf()
1101 "= %s\n"), kbuf); in do_chkaconf()
/titanic_41/usr/src/uts/sun4u/opl/io/
H A Dmc-opl.c4024 caddr_t buf, kbuf; in mc_ioctl_debug() local
4093 kbuf = kmem_alloc(512 * 1024 * 1024, KM_SLEEP); in mc_ioctl_debug()
4095 (u_longlong_t)kbuf, (u_longlong_t)va_to_pa(kbuf)); in mc_ioctl_debug()
/titanic_41/usr/src/uts/common/fs/ufs/
H A Dufs_vnops.c2523 char kbuf[FSL_SIZE]; /* buffer to hold fast symlink */ in ufs_readlink() local
2553 tiov.iov_base = kbuf; in ufs_readlink()
2602 error = uiomove((caddr_t)kbuf, in ufs_readlink()