Lines Matching defs:kdata
1328 se_pubsub_t kdata;
1331 if (copyin(udata, &kdata, sizeof (se_pubsub_t)) == -1) {
1334 if (kdata.ps_channel_name_len == 0) {
1337 kchannel = kmem_alloc(kdata.ps_channel_name_len, KM_SLEEP);
1338 if (copyin(channel_name, kchannel, kdata.ps_channel_name_len) == -1) {
1339 kmem_free(kchannel, kdata.ps_channel_name_len);
1342 bufsz = kdata.ps_buflen;
1346 kmem_free(kchannel, kdata.ps_channel_name_len);
1353 if (kdata.ps_op != SE_OPEN_REGISTRATION &&
1354 kdata.ps_op != SE_CLOSE_REGISTRATION) {
1358 kmem_free(kchannel, kdata.ps_channel_name_len);
1365 switch (kdata.ps_op) {
1371 kmem_free(kchannel, kdata.ps_channel_name_len);
1380 if ((kdata.ps_id = bind_common(chan, kdata.ps_type)) <= 0)
1384 (void) unbind_common(chan, kdata.ps_type, (id_t)kdata.ps_id);
1391 if (add_registration(chan, kdata.ps_id, databuf, bufsz) == -1)
1399 remove_class(chan, kdata.ps_id, databuf);
1403 release_id(chan, kdata.ps_type, kdata.ps_id);
1407 &kdata.ps_buflen, kdata.ps_id);
1415 kmem_free(kchannel, kdata.ps_channel_name_len);
1423 if (copyout(&kdata, udata, sizeof (se_pubsub_t)) == -1)