Lines Matching defs:iosw

65 #include <sys/iosw.h>
155 struct iosw iosw;
172 * the syscall return checking, async I/O wait, iosw check, etc.
321 int signo, char *pattern, void *iosw);
469 #define U_IOSW 0002 /* upanic on bad iosw */
476 {"iosw", U_IOSW},
1282 char *pattern, void *iosw)
1328 (unsigned long)iosw, signo);
1347 (unsigned long)iosw, signo);
1548 if (reada(fd, addr, nbytes, &aiop->iosw, signo) == -1) {
1552 &aiop->iosw));
1567 if (aiop->iosw.sw_count != nbytes) {
1569 "Bad iosw from reada()\nExpected (%d,%d,%d), got (%d,%d,%d)\n%s\n",
1571 aiop->iosw.sw_flag,
1572 aiop->iosw.sw_error,
1573 aiop->iosw.sw_count,
1575 NULL, &aiop->iosw));
1857 * init iosw and do the async write
1860 if (writea(fd, addr, nbytes, &aiop->iosw, signo) == -1) {
1878 * check that iosw is ok
1881 if (aiop->iosw.sw_count != nbytes) {
1883 "Bad iosw from writea()\nExpected (%d,%d,%d), got (%d,%d,%d)\n%s\n",
1885 aiop->iosw.sw_flag,
1886 aiop->iosw.sw_error,
1887 aiop->iosw.sw_count,
1889 Pattern, &aiop->iosw));
1916 &aiop->iosw)
2208 lio_req.li_status = &aiop->iosw;
2247 if (aiop->iosw.sw_count != lio->r_nbytes * nstrides) {
2249 "Bad iosw from listio()\nExpected (%d,%d,%d), got (%d,%d,%d)\n%s\n",
2251 aiop->iosw.sw_flag,
2252 aiop->iosw.sw_error, aiop->iosw.sw_count,
2586 l->li_status = &aiop->iosw;
3069 struct iosw *iosw;
3337 * for this in either the return value or the 'iosw'
3347 iosw = &aiop->iosw;
3348 if (iosw->sw_error != 0) {
3350 "%s() iosw error set: %s\n%s\n%s\n",
3352 strerror(iosw->sw_error),
3359 } else if (iosw->sw_count != nbytes * nstrides) {
3361 "Bad iosw from %s() #%d\nExpected (%d,%d,%d), got (%d,%d,%d)\n%s\n%s\n",
3364 iosw->sw_flag,
3365 iosw->sw_error,
3366 iosw->sw_count,
4706 memset((char *)&aiop->iosw, 0x00, sizeof(aiop->iosw));
4749 struct iosw *ioswlist[1];
4776 ioswlist[0] = &aiop->iosw;
4800 ioswlist[0] = &aiop->iosw;
4883 return ainfo->iosw.sw_flag;
5574 "\t 'iosw' ---> upanic on unexpected async iosw\n");