Lines Matching refs:cb
81 print_common_flags(const struct iocb *cb)
85 if (cb->aio_flags & IOCB_FLAG_RESFD)
86 tprintf(", resfd=%d", cb->aio_resfd);
87 if (cb->aio_flags & ~IOCB_FLAG_RESFD)
88 tprintf(", flags=%x", cb->aio_flags);
93 iocb_is_valid(const struct iocb *cb)
95 return cb->aio_buf == (unsigned long) cb->aio_buf &&
96 cb->aio_nbytes == (size_t) cb->aio_nbytes &&
97 (ssize_t) cb->aio_nbytes >= 0;
101 print_iocb_header(const struct iocb *cb)
105 if (cb->aio_data)
107 (uint64_t) cb->aio_data);
109 if (cb->aio_key)
110 tprintf("key=%u, ", cb->aio_key);
112 sub = tprint_lio_opcode(cb->aio_lio_opcode);
113 if (cb->aio_reqprio)
114 tprintf(", reqprio=%hd", cb->aio_reqprio);
116 tprintf(", fildes=%d", cb->aio_fildes);
122 print_iocb(struct tcb *tcp, const struct iocb *cb)
124 enum iocb_sub sub = print_iocb_header(cb);
128 if (cb->aio_lio_opcode == 1 && iocb_is_valid(cb)) {
130 printstr(tcp, (unsigned long) cb->aio_buf,
131 (unsigned long) cb->aio_nbytes);
133 tprintf(", buf=%#" PRIx64, (uint64_t) cb->aio_buf);
136 (uint64_t) cb->aio_nbytes, (int64_t) cb->aio_offset);
137 print_common_flags(cb);
140 if (iocb_is_valid(cb)) {
142 tprint_iov(tcp, cb->aio_nbytes, cb->aio_buf,
143 cb->aio_lio_opcode == 8);
146 (uint64_t) cb->aio_buf,
147 (uint64_t) cb->aio_nbytes);
149 tprintf(", offset=%" PRId64, (int64_t) cb->aio_offset);
150 print_common_flags(cb);
168 struct iocb cb;
182 if (!umove_or_printaddr(tcp, iocbp, &cb))
183 print_iocb(tcp, &cb);
209 struct iocb cb;
211 if (!umove_or_printaddr(tcp, tcp->u_arg[1], &cb)) {
213 print_iocb_header(&cb);