Lines Matching defs:kparam
1424 * the caller must kmem_free() the buffer pointed by kparam->ctpm_kbuf.
1431 ctparam_copyin(const void *uaddr, ct_kparam_t *kparam, int flag, int cmd)
1435 ct_param_t *param = &kparam->param;
1447 kparam->ctpm_kbuf = kmem_alloc(size, KM_SLEEP);
1449 if (copyin(ubuf, kparam->ctpm_kbuf, size)) {
1450 kmem_free(kparam->ctpm_kbuf, size);
1457 kparam->ret_size = 0;
1469 ctparam_copyout(ct_kparam_t *kparam, void *uaddr, int flag)
1472 ct_param_t *param = &kparam->param;
1478 STRUCT_FSET(uarg, ctpm_size, kparam->ret_size);
1484 if (copyout(kparam->ctpm_kbuf, param->ctpm_value,
1485 MIN(kparam->ret_size, param->ctpm_size))) {
1490 kmem_free(kparam->ctpm_kbuf, param->ctpm_size);
1536 ctmpl_set(ct_template_t *template, ct_kparam_t *kparam, const cred_t *cr)
1539 ct_param_t *param = &kparam->param;
1548 param_value = *(uint64_t *)kparam->ctpm_kbuf;
1582 result = template->ctmpl_ops->ctop_set(template, kparam, cr);
1596 * the buffer size necessary to fit the term in kparam->ret_size. If the
1606 ctmpl_get(ct_template_t *template, ct_kparam_t *kparam)
1609 ct_param_t *param = &kparam->param;
1618 param_value = kparam->ctpm_kbuf;
1619 kparam->ret_size = sizeof (uint64_t);
1635 result = template->ctmpl_ops->ctop_get(template, kparam);