if (!chan->handle) {
return -ENOMEM;
}
+ /*
+ * The channel fds are passed to ustctl, we only keep a copy.
+ */
+ chan->shm_fd_is_copy = 1;
+ chan->wait_fd_is_copy = 1;
+
return 0;
}
if (!stream->mmap_base) {
return -EINVAL;
}
+ /*
+ * The stream fds are passed to ustctl, we only keep a copy.
+ */
+ stream->shm_fd_is_copy = 1;
+ stream->wait_fd_is_copy = 1;
+
return 0;
}