/hardware/qcom/bt/msm8996/libbt-vendor/src/ |
D | hci_smd.c | 61 int fd = -1; in bt_hci_init_transport_id() local 69 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 71 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 75 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 79 if (-1 == fd) in bt_hci_init_transport_id() 112 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() 115 close(fd); in bt_hci_init_transport_id() 119 if (tcgetattr(fd, &term) < 0) in bt_hci_init_transport_id() 122 close(fd); in bt_hci_init_transport_id() 133 if (tcsetattr(fd, TCSANOW, &term) < 0) in bt_hci_init_transport_id() [all …]
|
D | hci_uart.c | 188 void userial_ioctl_init_bt_wake(int fd) in userial_ioctl_init_bt_wake() argument 193 ioctl(fd, USERIAL_IOCTL_BT_WAKE_ASSERT, NULL); in userial_ioctl_init_bt_wake() 194 ioctl(fd, USERIAL_IOCTL_BT_WAKE_GET_ST, &bt_wake_state); in userial_ioctl_init_bt_wake() 216 vnd_userial.fd = -1; in userial_vendor_init() 236 vnd_userial.fd = -1; in userial_vendor_open() 281 if ((vnd_userial.fd = open(vnd_userial.port_name, O_RDWR|O_NOCTTY)) == -1) in userial_vendor_open() 287 tcflush(vnd_userial.fd, TCIOFLUSH); in userial_vendor_open() 289 tcgetattr(vnd_userial.fd, &vnd_userial.termios); in userial_vendor_open() 296 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() 301 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() [all …]
|
/hardware/qcom/bt/msm8998/libbt-vendor/src/ |
D | hci_smd.c | 62 int fd = -1; in bt_hci_init_transport_id() local 70 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 72 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 76 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 80 if (-1 == fd) in bt_hci_init_transport_id() 113 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() 116 close(fd); in bt_hci_init_transport_id() 120 if (tcgetattr(fd, &term) < 0) in bt_hci_init_transport_id() 123 close(fd); in bt_hci_init_transport_id() 134 if (tcsetattr(fd, TCSANOW, &term) < 0) in bt_hci_init_transport_id() [all …]
|
D | hci_uart.c | 191 void userial_ioctl_init_bt_wake(int fd) in userial_ioctl_init_bt_wake() argument 196 ioctl(fd, USERIAL_IOCTL_BT_WAKE_ASSERT, NULL); in userial_ioctl_init_bt_wake() 197 ioctl(fd, USERIAL_IOCTL_BT_WAKE_GET_ST, &bt_wake_state); in userial_ioctl_init_bt_wake() 219 vnd_userial.fd = -1; in userial_vendor_init() 239 vnd_userial.fd = -1; in userial_vendor_open() 284 if ((vnd_userial.fd = open(vnd_userial.port_name, O_RDWR|O_NOCTTY)) == -1) in userial_vendor_open() 291 tcflush(vnd_userial.fd, TCIOFLUSH); in userial_vendor_open() 293 tcgetattr(vnd_userial.fd, &vnd_userial.termios); in userial_vendor_open() 300 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() 305 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() [all …]
|
/hardware/qcom/bt/sdm845/libbt-vendor/src/ |
D | hci_smd.c | 59 int fd = -1; in bt_hci_init_transport_id() local 67 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 69 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 73 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 77 if (-1 == fd) in bt_hci_init_transport_id() 110 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() 113 close(fd); in bt_hci_init_transport_id() 117 if (tcgetattr(fd, &term) < 0) in bt_hci_init_transport_id() 120 close(fd); in bt_hci_init_transport_id() 131 if (tcsetattr(fd, TCSANOW, &term) < 0) in bt_hci_init_transport_id() [all …]
|
D | hci_uart.c | 187 void userial_ioctl_init_bt_wake(int fd) in userial_ioctl_init_bt_wake() argument 192 ioctl(fd, USERIAL_IOCTL_BT_WAKE_ASSERT, NULL); in userial_ioctl_init_bt_wake() 193 ioctl(fd, USERIAL_IOCTL_BT_WAKE_GET_ST, &bt_wake_state); in userial_ioctl_init_bt_wake() 215 vnd_userial.fd = -1; in userial_vendor_init() 235 vnd_userial.fd = -1; in userial_vendor_open() 280 if ((vnd_userial.fd = open(vnd_userial.port_name, O_RDWR|O_NOCTTY)) == -1) in userial_vendor_open() 287 tcflush(vnd_userial.fd, TCIOFLUSH); in userial_vendor_open() 289 tcgetattr(vnd_userial.fd, &vnd_userial.termios); in userial_vendor_open() 296 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() 301 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() [all …]
|
/hardware/qcom/bt/msm8909/libbt-vendor/src/ |
D | hci_smd.c | 59 int fd = -1; in bt_hci_init_transport_id() local 67 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 69 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 73 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 77 if (-1 == fd) in bt_hci_init_transport_id() 110 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() 113 close(fd); in bt_hci_init_transport_id() 117 if (tcgetattr(fd, &term) < 0) in bt_hci_init_transport_id() 120 close(fd); in bt_hci_init_transport_id() 131 if (tcsetattr(fd, TCSANOW, &term) < 0) in bt_hci_init_transport_id() [all …]
|
D | hci_uart.c | 185 void userial_ioctl_init_bt_wake(int fd) in userial_ioctl_init_bt_wake() argument 190 ioctl(fd, USERIAL_IOCTL_BT_WAKE_ASSERT, NULL); in userial_ioctl_init_bt_wake() 191 ioctl(fd, USERIAL_IOCTL_BT_WAKE_GET_ST, &bt_wake_state); in userial_ioctl_init_bt_wake() 213 vnd_userial.fd = -1; in userial_vendor_init() 233 vnd_userial.fd = -1; in userial_vendor_open() 278 if ((vnd_userial.fd = open(vnd_userial.port_name, O_RDWR|O_NOCTTY)) == -1) in userial_vendor_open() 284 tcflush(vnd_userial.fd, TCIOFLUSH); in userial_vendor_open() 286 tcgetattr(vnd_userial.fd, &vnd_userial.termios); in userial_vendor_open() 293 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() 298 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() [all …]
|
/hardware/qcom/bt/msm8992/libbt-vendor/src/ |
D | hci_smd.c | 58 int fd = -1; in bt_hci_init_transport_id() local 66 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 68 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 72 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 76 if (-1 == fd) in bt_hci_init_transport_id() 109 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() 112 close(fd); in bt_hci_init_transport_id() 116 if (tcgetattr(fd, &term) < 0) in bt_hci_init_transport_id() 119 close(fd); in bt_hci_init_transport_id() 130 if (tcsetattr(fd, TCSANOW, &term) < 0) in bt_hci_init_transport_id() [all …]
|
D | hci_uart.c | 186 void userial_ioctl_init_bt_wake(int fd) in userial_ioctl_init_bt_wake() argument 191 ioctl(fd, USERIAL_IOCTL_BT_WAKE_ASSERT, NULL); in userial_ioctl_init_bt_wake() 192 ioctl(fd, USERIAL_IOCTL_BT_WAKE_GET_ST, &bt_wake_state); in userial_ioctl_init_bt_wake() 214 vnd_userial.fd = -1; in userial_vendor_init() 234 vnd_userial.fd = -1; in userial_vendor_open() 279 if ((vnd_userial.fd = open(vnd_userial.port_name, O_RDWR|O_NOCTTY)) == -1) in userial_vendor_open() 285 tcflush(vnd_userial.fd, TCIOFLUSH); in userial_vendor_open() 287 tcgetattr(vnd_userial.fd, &vnd_userial.termios); in userial_vendor_open() 294 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() 299 tcsetattr(vnd_userial.fd, TCSANOW, &vnd_userial.termios); in userial_vendor_open() [all …]
|
/hardware/broadcom/libbt/src/ |
D | userial_vendor.c | 62 int fd; /* fd to Bluetooth device */ member 137 void userial_ioctl_init_bt_wake(int fd) in userial_ioctl_init_bt_wake() argument 145 if (ioctl(vnd_userial.fd, TIOCSETD, &ldisc) < 0) in userial_ioctl_init_bt_wake() 148 fd, errno, ldisc); in userial_ioctl_init_bt_wake() 155 ioctl(fd, USERIAL_IOCTL_BT_WAKE_ASSERT, NULL); in userial_ioctl_init_bt_wake() 156 ioctl(fd, USERIAL_IOCTL_BT_WAKE_GET_ST, &bt_wake_state); in userial_ioctl_init_bt_wake() 178 vnd_userial.fd = -1; in userial_vendor_init() 199 vnd_userial.fd = -1; in userial_vendor_open() 244 if ((vnd_userial.fd = open(vnd_userial.port_name, O_RDWR)) == -1) in userial_vendor_open() 250 tcflush(vnd_userial.fd, TCIOFLUSH); in userial_vendor_open() [all …]
|
/hardware/qcom/display/msm8960/liboverlay/ |
D | mdpWrapper.h | 49 bool getFScreenInfo(int fd, fb_fix_screeninfo& finfo); 52 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 55 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 58 bool startRotator(int fd, msm_rotator_img_info& rot); 61 bool rotate(int fd, msm_rotator_data_info& rot); 64 bool setOverlay(int fd, mdp_overlay& ov); 67 bool endRotator(int fd, int sessionId); 70 bool unsetOverlay(int fd, int ovId); 73 bool getOverlay(int fd, mdp_overlay& ov); 76 bool play(int fd, msmfb_overlay_data& od); [all …]
|
/hardware/qcom/display/msm8084/liboverlay/ |
D | mdpWrapper.h | 51 bool getFScreenInfo(int fd, fb_fix_screeninfo& finfo); 54 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 57 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 60 bool startRotator(int fd, msm_rotator_img_info& rot); 63 bool rotate(int fd, msm_rotator_data_info& rot); 66 bool setOverlay(int fd, mdp_overlay& ov); 69 bool validateAndSet(const int& fd, mdp_overlay_list& list); 72 bool endRotator(int fd, int sessionId); 75 bool unsetOverlay(int fd, int ovId); 78 bool getOverlay(int fd, mdp_overlay& ov); [all …]
|
/hardware/qcom/bt/msm8960/libbt-vendor/src/ |
D | userial_vendor.c | 71 int fd; in bt_hci_init_transport() local 73 fd = bt_hci_init_transport_id(i); in bt_hci_init_transport() 74 if(fd < 0 ){ in bt_hci_init_transport() 77 pFd[i] = fd; in bt_hci_init_transport() 85 int fd = -1; in bt_hci_init_transport_id() local 91 fd = open(s_pszDevSmd[chId], (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 93 while ((-1 == fd) && (retry < 7)) { in bt_hci_init_transport_id() 97 fd = open(bt_hci_transport_device.name, (O_RDWR | O_NOCTTY)); in bt_hci_init_transport_id() 101 if (-1 == fd) in bt_hci_init_transport_id() 116 if (tcflush(fd, TCIOFLUSH) < 0) in bt_hci_init_transport_id() [all …]
|
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
D | loc_eng_dmn_conn_glue_pipe.c | 63 int fd; in loc_eng_dmn_conn_glue_pipeget() local 82 fd = open(pipe_name, mode); in loc_eng_dmn_conn_glue_pipeget() 83 if (fd <= 0) in loc_eng_dmn_conn_glue_pipeget() 87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_pipeget() 88 return fd; in loc_eng_dmn_conn_glue_pipeget() 110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) in loc_eng_dmn_conn_glue_piperemove() argument 112 close(fd); in loc_eng_dmn_conn_glue_piperemove() 114 LOC_LOGD("fd = %d, %s\n", fd, pipe_name); in loc_eng_dmn_conn_glue_piperemove() 138 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) in loc_eng_dmn_conn_glue_pipewrite() argument 142 result = write(fd, buf, sz); in loc_eng_dmn_conn_glue_pipewrite() [all …]
|
/hardware/qcom/display/msm8226/liboverlay/ |
D | mdpWrapper.h | 54 bool getFScreenInfo(int fd, fb_fix_screeninfo& finfo); 57 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 60 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 63 bool startRotator(int fd, msm_rotator_img_info& rot); 66 bool rotate(int fd, msm_rotator_data_info& rot); 69 bool setOverlay(int fd, mdp_overlay& ov); 72 bool validateAndSet(const int& fd, mdp_overlay_list& list); 75 bool endRotator(int fd, int sessionId); 78 bool unsetOverlay(int fd, int ovId); 81 bool getOverlay(int fd, mdp_overlay& ov); [all …]
|
/hardware/qcom/display/msm8994/liboverlay/ |
D | mdpWrapper.h | 57 bool getFScreenInfo(int fd, fb_fix_screeninfo& finfo); 60 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 63 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 66 bool startRotator(int fd, msm_rotator_img_info& rot); 69 bool rotate(int fd, msm_rotator_data_info& rot); 72 bool setOverlay(int fd, mdp_overlay& ov); 75 int validateAndSet(const int& fd, mdp_overlay_list& list); 78 bool endRotator(int fd, int sessionId); 81 bool unsetOverlay(int fd, int ovId); 84 bool getOverlay(int fd, mdp_overlay& ov); [all …]
|
/hardware/qcom/display/msm8909/liboverlay/ |
D | mdpWrapper.h | 57 bool getFScreenInfo(int fd, fb_fix_screeninfo& finfo); 60 bool getVScreenInfo(int fd, fb_var_screeninfo& vinfo); 63 bool setVScreenInfo(int fd, fb_var_screeninfo& vinfo); 66 bool startRotator(int fd, msm_rotator_img_info& rot); 69 bool rotate(int fd, msm_rotator_data_info& rot); 72 bool setOverlay(int fd, mdp_overlay& ov); 75 int validateAndSet(const int& fd, mdp_overlay_list& list); 78 bool endRotator(int fd, int sessionId); 81 bool unsetOverlay(int fd, int ovId); 84 bool getOverlay(int fd, mdp_overlay& ov); [all …]
|
/hardware/invensense/65xx/libsensors_iio/ |
D | MPLSupport.cpp | 33 int count, fd; in inv_read_data() local 35 fd = open(fname, O_RDONLY); in inv_read_data() 36 if(fd < 0) { in inv_read_data() 41 count = read_attribute_sensor(fd, buf, sizeof(buf)); in inv_read_data() 43 close(fd); in inv_read_data() 50 close(fd); in inv_read_data() 56 int read_attribute_sensor(int fd, char* data, unsigned int size) in read_attribute_sensor() argument 61 if (fd > 0) { in read_attribute_sensor() 62 count = pread(fd, data, size, 0); in read_attribute_sensor() 80 int enable_sysfs_sensor(int fd, int en) in enable_sysfs_sensor() argument [all …]
|
/hardware/qcom/display/msm8960/libgenlock/ |
D | genlock.cpp | 89 lock.fd = hnd->genlockHandle; in perform_lock_unlock_operation() 95 lockType, strerror(errno), hnd->fd); in perform_lock_unlock_operation() 105 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); in perform_lock_unlock_operation() 117 void close_genlock_fd_and_handle(int& fd, int& handle) in close_genlock_fd_and_handle() argument 119 if (fd >=0 ) { in close_genlock_fd_and_handle() 120 close(fd); in close_genlock_fd_and_handle() 121 fd = -1; in close_genlock_fd_and_handle() 154 int fd = open(GENLOCK_DEVICE, O_RDWR); in genlock_create_lock() local 155 if (fd < 0) { in genlock_create_lock() 163 if (ioctl(fd, GENLOCK_IOC_NEW, NULL)) { in genlock_create_lock() [all …]
|