Home
last modified time | relevance | path

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

/samples/watch_queue/
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/
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/mei/
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/bpf/
Dxsk_fwd.c362 u64 buffer; in bcache_cons() local
364 buffer = bc->slab_cons[n_buffers_cons]; in bcache_cons()
366 return buffer; in bcache_cons()
370 bcache_prod(struct bcache *bc, u64 buffer) in bcache_prod() argument
382 bc->slab_prod[n_buffers_prod] = buffer; in bcache_prod()
401 slab_empty[0] = buffer; in bcache_prod()
Dtcp_bpf.readme18 "bpftool prog tracelog" will continue to run printing the BPF log buffer.
Dxdpsock_user.c142 void *buffer; member
797 memcpy(xsk_umem__get_data(umem->buffer, addr), pkt_data, in gen_eth_frame()
801 static struct xsk_umem_info *xsk_configure_umem(void *buffer, u64 size) in xsk_configure_umem() argument
826 ret = xsk_umem__create(&umem->umem, buffer, size, &umem->fq, &umem->cq, in xsk_configure_umem()
831 umem->buffer = buffer; in xsk_configure_umem()
1229 char *pkt = xsk_umem__get_data(xsk->umem->buffer, addr); in rx_drop()
1396 char *pkt = xsk_umem__get_data(xsk->umem->buffer, addr); in l2fwd()