Home
last modified time | relevance | path

Searched refs:event_buf (Results 1 – 18 of 18) sorted by relevance

/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify01.c80 static char event_buf[EVENT_BUF_LEN]; variable
137 ret = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in test_fanotify()
155 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
183 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
206 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
238 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
258 ret = SAFE_READ(0, fd_notify, event_buf + len, in test_fanotify()
275 event = (struct fanotify_event_metadata *)&event_buf[i]; in test_fanotify()
Dfanotify02.c41 static char event_buf[EVENT_BUF_LEN]; variable
79 ret = SAFE_READ(0, fd_notify, event_buf, in test01()
98 ret = SAFE_READ(0, fd_notify, event_buf + len, in test01()
131 ret = SAFE_READ(0, fd_notify, event_buf + len, in test01()
147 event = (struct fanotify_event_metadata *)&event_buf[i]; in test01()
Dfanotify06.c63 static char event_buf[EVENT_BUF_LEN]; variable
189 ret = read(fd_notify[0][i], event_buf, EVENT_BUF_LEN); in test_fanotify()
204 event = (struct fanotify_event_metadata *)event_buf; in test_fanotify()
217 ret = read(fd_notify[p][i], event_buf, EVENT_BUF_LEN); in test_fanotify()
221 close_events_fd((void *)event_buf, ret); in test_fanotify()
Dfanotify04.c42 static char event_buf[EVENT_BUF_LEN]; variable
117 ret = SAFE_READ(0, fd_notify, event_buf + len, in verify_event()
119 event = (struct fanotify_event_metadata *)&event_buf[len]; in verify_event()
154 ret = read(fd_notify, event_buf + len, EVENT_BUF_LEN - len); in verify_no_event()
158 event = (struct fanotify_event_metadata *)&event_buf[len]; in verify_no_event()
Dfanotify09.c51 static char event_buf[EVENT_BUF_LEN]; variable
180 ret = read(fd_notify[0], event_buf, EVENT_BUF_LEN); in test_fanotify()
194 event = (struct fanotify_event_metadata *)event_buf; in test_fanotify()
216 ret = read(fd_notify[i], event_buf, FAN_EVENT_METADATA_LEN); in test_fanotify()
Dfanotify12.c41 static char event_buf[EVENT_BUF_LEN]; variable
212 len = SAFE_READ(0, fd_notify, event_buf, EVENT_BUF_LEN); in do_test()
214 event = (struct fanotify_event_metadata *) event_buf; in do_test()
Dfanotify10.c55 static char event_buf[EVENT_BUF_LEN]; variable
349 ret = read(fd_notify[p][i], event_buf, EVENT_BUF_LEN); in test_fanotify()
365 event = (struct fanotify_event_metadata *)event_buf; in test_fanotify()
384 ret = read(fd_notify[p][i], event_buf, EVENT_BUF_LEN); in test_fanotify()
Dfanotify03.c50 static char event_buf[EVENT_BUF_LEN]; variable
280 ret = read(fd_notify, event_buf + len, in test_fanotify()
292 event = (struct fanotify_event_metadata *)&event_buf[i]; in test_fanotify()
/external/ltp/testcases/kernel/syscalls/inotify/
Dinotify05.c39 static char event_buf[EVENT_BUF_LEN]; variable
65 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
79 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
Dinotify01.c42 static char event_buf[EVENT_BUF_LEN]; variable
95 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) < 0) { in verify_inotify()
107 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
Dinotify03.c44 static char event_buf[EVENT_BUF_LEN]; variable
80 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
91 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
Dinotify08.c62 static char event_buf[EVENT_BUF_LEN]; variable
87 int len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
97 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
Dinotify04.c49 char event_buf[EVENT_BUF_LEN]; variable
126 len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
132 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
Dinotify07.c64 static char event_buf[EVENT_BUF_LEN]; variable
89 int len = read(fd_notify, event_buf, EVENT_BUF_LEN); in verify_inotify()
99 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
Dinotify02.c53 static char event_buf[EVENT_BUF_LEN]; variable
125 if ((len = read(fd_notify, event_buf, EVENT_BUF_LEN)) == -1) { in verify_inotify()
134 event = (struct inotify_event *)&event_buf[i]; in verify_inotify()
/external/wpa_supplicant_8/src/drivers/
Ddriver_privsep.c521 u8 *buf, *event_buf; in wpa_driver_privsep_receive() local
549 event_buf = &buf[sizeof(int)]; in wpa_driver_privsep_receive()
564 event_buf, event_len); in wpa_driver_privsep_receive()
571 event_buf, event_len); in wpa_driver_privsep_receive()
575 drv->ctx, event_buf, event_len); in wpa_driver_privsep_receive()
578 wpa_driver_privsep_event_interface_status(drv->ctx, event_buf, in wpa_driver_privsep_receive()
582 wpa_driver_privsep_event_pmkid_candidate(drv->ctx, event_buf, in wpa_driver_privsep_receive()
586 wpa_driver_privsep_event_ft_response(drv->ctx, event_buf, in wpa_driver_privsep_receive()
590 wpa_driver_privsep_event_rx_eapol(drv->ctx, event_buf, in wpa_driver_privsep_receive()
594 wpa_driver_privsep_event_auth(drv->ctx, event_buf, event_len); in wpa_driver_privsep_receive()
Ddriver_bsd.c624 char event_buf[2048]; /* max size of a single route(4) msg */ in bsd_route_overflow() local
634 n = read(sock, event_buf, sizeof(event_buf)); in bsd_route_overflow()
725 char event_buf[2048]; /* max size of a single route(4) msg */ in bsd_wireless_event_receive() local
737 n = read(sock, event_buf, sizeof(event_buf)); in bsd_wireless_event_receive()
749 rtm = (struct rt_msghdr *) event_buf; in bsd_wireless_event_receive()
/external/adhd/cras/src/common/
Dcras_file_wait.c34 char event_buf[CRAS_FILE_WAIT_EVENT_SIZE]; member
146 read_rc = read(file_wait->inotify_fd, file_wait->event_buf, in cras_file_wait_dispatch()
164 *)(file_wait->event_buf + in cras_file_wait_dispatch()