Home | History | Annotate | Download | only in libgenlock

Lines Matching defs:hnd

73         private_handle_t *hnd = reinterpret_cast<private_handle_t*>
75 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
76 if (hnd->genlockPrivFd < 0) {
86 lock.fd = hnd->genlockHandle;
89 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) {
92 lockType, strerror(errno), hnd->fd);
100 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) {
102 ,__FUNCTION__, lockType, strerror(errno), hnd->fd);
144 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle);
145 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
174 hnd->genlockPrivFd = fd;
175 hnd->genlockHandle = lock.fd;
177 hnd->genlockHandle = 0;
199 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle);
200 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
201 if (hnd->genlockPrivFd < 0) {
207 close_genlock_fd_and_handle(hnd->genlockPrivFd, hnd->genlockHandle);
229 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle);
230 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
241 lock.fd = hnd->genlockHandle;
250 hnd->genlockPrivFd = fd;
322 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle);
323 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
324 if (hnd->genlockPrivFd < 0) {
333 lock.fd = hnd->genlockHandle;
335 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_WAIT, &lock)) {