/external/strace/tests/ |
ioctl_sg_io_v3.c | 2 * Check decoding of ioctl SG_IO v3 commands. 43 ioctl(-1, SG_IO, 0); 44 printf("ioctl(-1, SG_IO, NULL) = -1 EBADF (%m)\n"); 46 TAIL_ALLOC_OBJECT_CONST_PTR(struct sg_io_hdr, sg_io); 47 fill_memory(sg_io, sizeof(*sg_io)); 49 const void *const efault = sg_io + 1; 50 ioctl(-1, SG_IO, efault); 51 printf("ioctl(-1, SG_IO, %p) = -1 EBADF (%m)\n", efault); 53 ioctl(-1, SG_IO, sg_io) [all...] |
ioctl_sg_io_v4.c | 2 * Check decoding of ioctl SG_IO v4 commands. 45 ioctl(-1, SG_IO, 0); 46 printf("ioctl(-1, SG_IO, NULL) = -1 EBADF (%m)\n"); 48 TAIL_ALLOC_OBJECT_CONST_PTR(struct sg_io_v4, sg_io); 49 fill_memory(sg_io, sizeof(*sg_io)); 51 const void *const efault = sg_io + 1; 52 ioctl(-1, SG_IO, efault); 53 printf("ioctl(-1, SG_IO, %p) = -1 EBADF (%m)\n", efault); 55 ioctl(-1, SG_IO, sg_io) [all...] |
ioctl_scsi.c | 95 TEST_NULL_ARG(SG_IO);
|
/external/strace/tests-m32/ |
ioctl_sg_io_v3.c | 2 * Check decoding of ioctl SG_IO v3 commands. 43 ioctl(-1, SG_IO, 0); 44 printf("ioctl(-1, SG_IO, NULL) = -1 EBADF (%m)\n"); 46 TAIL_ALLOC_OBJECT_CONST_PTR(struct sg_io_hdr, sg_io); 47 fill_memory(sg_io, sizeof(*sg_io)); 49 const void *const efault = sg_io + 1; 50 ioctl(-1, SG_IO, efault); 51 printf("ioctl(-1, SG_IO, %p) = -1 EBADF (%m)\n", efault); 53 ioctl(-1, SG_IO, sg_io) [all...] |
ioctl_sg_io_v4.c | 2 * Check decoding of ioctl SG_IO v4 commands. 45 ioctl(-1, SG_IO, 0); 46 printf("ioctl(-1, SG_IO, NULL) = -1 EBADF (%m)\n"); 48 TAIL_ALLOC_OBJECT_CONST_PTR(struct sg_io_v4, sg_io); 49 fill_memory(sg_io, sizeof(*sg_io)); 51 const void *const efault = sg_io + 1; 52 ioctl(-1, SG_IO, efault); 53 printf("ioctl(-1, SG_IO, %p) = -1 EBADF (%m)\n", efault); 55 ioctl(-1, SG_IO, sg_io) [all...] |
ioctl_scsi.c | 95 TEST_NULL_ARG(SG_IO);
|
/external/strace/tests-mx32/ |
ioctl_sg_io_v3.c | 2 * Check decoding of ioctl SG_IO v3 commands. 43 ioctl(-1, SG_IO, 0); 44 printf("ioctl(-1, SG_IO, NULL) = -1 EBADF (%m)\n"); 46 TAIL_ALLOC_OBJECT_CONST_PTR(struct sg_io_hdr, sg_io); 47 fill_memory(sg_io, sizeof(*sg_io)); 49 const void *const efault = sg_io + 1; 50 ioctl(-1, SG_IO, efault); 51 printf("ioctl(-1, SG_IO, %p) = -1 EBADF (%m)\n", efault); 53 ioctl(-1, SG_IO, sg_io) [all...] |
ioctl_sg_io_v4.c | 2 * Check decoding of ioctl SG_IO v4 commands. 45 ioctl(-1, SG_IO, 0); 46 printf("ioctl(-1, SG_IO, NULL) = -1 EBADF (%m)\n"); 48 TAIL_ALLOC_OBJECT_CONST_PTR(struct sg_io_v4, sg_io); 49 fill_memory(sg_io, sizeof(*sg_io)); 51 const void *const efault = sg_io + 1; 52 ioctl(-1, SG_IO, efault); 53 printf("ioctl(-1, SG_IO, %p) = -1 EBADF (%m)\n", efault); 55 ioctl(-1, SG_IO, sg_io) [all...] |
ioctl_scsi.c | 95 TEST_NULL_ARG(SG_IO);
|
/external/strace/xlat/ |
scsi_sg_commands.h | 62 #if !(defined(SG_IO) || (defined(HAVE_DECL_SG_IO) && HAVE_DECL_SG_IO)) 63 # define SG_IO 0x2285
|
/external/toybox/toys/other/ |
eject.c | 49 xioctl(fd, SG_IO, (void *)header);
|
/external/f2fs-tools/tools/sg_write_buffer/ |
sg_io_linux.c | 170 #ifdef SG_IO 210 #ifdef SG_IO
|
sg_pt_linux.c | 643 /* default action of block layer SG_IO ioctl is QUEUE_AT_TAIL */ 872 /* Finally do the v3 SG_IO ioctl */ 873 if (ioctl(fd, SG_IO, &v3_hdr) < 0) { 876 pr2ws("ioctl(SG_IO v3) failed: %s (errno=%d)\n", 956 if (ioctl(fd, SG_IO, &ptp->io_hdr) < 0) { 959 pr2ws("ioctl(SG_IO v4) failed: %s (errno=%d)\n",
|
/external/strace/ |
scsi.c | 91 case SG_IO:
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/scsi/ |
sg.h | 121 char orphan; /* 0 -> normal request, 1 -> from interruped SG_IO */ 122 char sg_io_owned; /* 0 -> complete with read(), 1 -> owned by SG_IO */ 178 #define SG_IO 0x2285 /* similar effect as write() followed by read() */ 182 /* How to treat EINTR during SG_IO ioctl(), only in SG 3.x series */
|
/bionic/libc/kernel/android/scsi/scsi/ |
sg.h | 109 #define SG_IO 0x2285
|
/external/kernel-headers/original/scsi/ |
sg.h | 118 char orphan; /* 0 -> normal request, 1 -> from interruped SG_IO */ 119 char sg_io_owned; /* 0 -> complete with read(), 1 -> owned by SG_IO */ 179 #define SG_IO 0x2285 /* similar effect as write() followed by read() */ 183 /* How to treat EINTR during SG_IO ioctl(), only in SG 3.x series */
|
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
scsimain.c | 118 SG_IO ioctl */ 435 #ifdef SG_IO 764 #ifdef SG_IO 829 #ifdef SG_IO 847 if (ioctl(sg_fd, SG_IO, &io_hdr) < 0) { 848 perror(ME "Inquiry SG_IO ioctl error"); 911 if (ioctl(sg_fd, SG_IO, &io_hdr) < 0) { 912 perror("SG_IO (log sense) error"); 916 printf("SG_IO ioctl: status=%d, info=%d, sb_len_wr=%d\n", [all...] |
sg_err.c | [all...] |
/external/fio/engines/ |
sg.c | 215 ret = ioctl(f->fd, SG_IO, hdr); 410 ret = ioctl(fd, SG_IO, &hdr); 436 ret = ioctl(fd, SG_IO, &hdr); 775 * called, so none of the sg_io structures are
|
/external/f2fs-tools/lib/ |
libf2fs.c | 882 if (!ioctl(fd, SG_IO, &io_hdr)) {
|