Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 7 of 7) sorted by relevance

/samples/watch_queue/
A Dwatch_test.c66 unsigned char buffer[433], *p, *end; in consumer() local
74 buf_len = read(fd, buffer, sizeof(buffer)); in consumer()
85 if (buf_len > sizeof(buffer)) { in consumer()
92 p = buffer; in consumer()
93 end = buffer + buf_len; in consumer()
107 p - buffer, n.n.type, n.n.subtype, n.n.info); in consumer()
/samples/vfs/
A Dtest-statx.c43 unsigned int mask, struct statx *buffer) in statx() argument
45 return syscall(__NR_statx, dfd, filename, flags, mask, buffer); in statx()
52 char buffer[100]; in print_time() local
60 len = strftime(buffer, 100, "%F %T", &tm); in print_time()
66 fwrite(buffer, 1, len, stdout); in print_time()
68 len = strftime(buffer, 100, "%z", &tm); in print_time()
73 fwrite(buffer, 1, len, stdout); in print_time()
79 char buffer[256], ft = '?'; in dump_statx() local
106 sprintf(buffer, "%02x:%02x", stx->stx_dev_major, stx->stx_dev_minor); in dump_statx()
107 printf("Device: %-15s", buffer); in dump_statx()
/samples/fanotify/
A Dfs-monitor.c58 static void handle_notifications(char *buffer, int len) in handle_notifications() argument
61 (struct fanotify_event_metadata *) buffer; in handle_notifications()
123 char buffer[BUFSIZ]; in main() local
140 int n = read(fd, buffer, BUFSIZ); in main()
145 handle_notifications(buffer, n); in main()
/samples/check-exec/
A Dinc.c34 static int interpret_buffer(char *buffer, size_t buffer_size) in interpret_buffer() argument
41 line = strtok_r(buffer, "\n", &saveptr); in interpret_buffer()
/samples/mei/
A Dmei-amt-version.c154 static ssize_t mei_recv_msg(struct mei *me, unsigned char *buffer, in mei_recv_msg() argument
182 rc = read(me->fd, buffer, len); in mei_recv_msg()
198 static ssize_t mei_send_msg(struct mei *me, const unsigned char *buffer, in mei_send_msg() argument
206 written = write(me->fd, buffer, len); in mei_send_msg()
/samples/cgroup/
A Dmemcg_event_listener.c247 char buffer[INOTIFY_BUFFER_SIZE]; in monitor_events() local
250 length = read(fds[0].fd, buffer, INOTIFY_BUFFER_SIZE); in monitor_events()
254 event = (struct inotify_event *)buffer; in monitor_events()
/samples/bpf/
A Dtcp_bpf.readme18 "bpftool prog tracelog" will continue to run printing the BPF log buffer.

Completed in 13 milliseconds