Home | History | Annotate | Download | only in lib

Lines Matching refs:method

51  *  int  lio_write_buffer(int fd, int method, char *buffer, int size,
53 * int lio_read_buffer(int fd, int method, char *buffer, int size,
57 * int lio_wait4asyncio(int method, int fd, struct iosw **statptr)
61 * int lio_wait4asyncio(int method, int fd, aiocb_t *aiocbp)
62 * int lio_check_asyncio(char *io_type, int size, aiocb_t *aiocbp, int method)
272 * This function will parse a string and return desired io-method.
326 * This function will parse a string and return the desired io-method.
328 * method tokens as defined in Lio_info2[]. If a token does not match
456 * This function will randomly choose an io type and wait method
463 * and wait method bits cleared. The LIO_RANDOM bit is also
472 /* remove random select, io type, and wait method bits from curr_mask */
498 * By setting the desired bits in the method
499 * bitmask, the caller can control the type of write and the wait method
502 * If async io was attempted and no wait method bits are set then the
503 * wait method is: recall(2) for writea(2) and listio(2); aio_suspend(3) for
507 * only one wait method will be used. The order is predetermined.
513 * If the LIO_RANDOM method bit is set, this function will randomly
514 * choose a io type and wait method from bits in the method argument.
534 int method, /* contains io type and wait method bitmask */
541 int ret = 0; /* syscall return or used to get random method */
543 int omethod = method;
563 * If LIO_RANDOM bit specified, get new method randomly.
565 if (method & LIO_RANDOM) {
567 printf("DEBUG %s/%d: method mask to choose from: %#o\n",
568 __FILE__, __LINE__, method);
569 method = lio_random_methods(method);
571 printf("DEBUG %s/%d: random chosen method %#o\n",
572 __FILE__, __LINE__, method);
622 if (method & LIO_IO_SYNCP) {
624 method &= ~LIO_IO_SYNCP;
625 method |= LIO_IO_SYNC;
628 ("DEBUG %s/%d: random chosen method switched to %#o for fifo\n",
630 method);
658 if (sig && !(method & LIO_USE_SIGNAL) && !(method & LIO_WAIT_SIGTYPES)) {
663 if (sig && (method & LIO_WAIT_CBTYPES))
669 * a sig wait method was specified.
675 if (sig && (method & LIO_WAIT_SIGTYPES)) {
686 else if (method & LIO_WAIT_CBTYPES) {
696 else if (method & LIO_WAIT_CBTYPES) {
716 if ((method & LIO_IO_SYNC)
717 || (method & (LIO_IO_TYPES | LIO_IO_ATYPES)) == 0) {
762 else if (method & LIO_IO_ASYNC) {
808 else if (method & LIO_IO_SLISTIO) {
881 ret = lio_check_asyncio(io_type, size, &aiocbp, method);
886 else if (method & LIO_IO_ALISTIO) {
949 else if (method & LIO_IO_SYNCV) {
980 else if (method & LIO_IO_SYNCP) {
1014 printf("DEBUG %s/%d: No I/O method chosen\n", __FILE__,
1023 ret = lio_wait4asyncio(method, fd, statptr);
1026 ret = lio_wait4asyncio(method, fd, &aiocbp);
1057 ret = lio_check_asyncio(io_type, size, &aiocbp, method);
1068 * By setting the desired bits in the method
1069 * bitmask, the caller can control the type of read and the wait method
1072 * If async io was attempted and no wait method bits are set then the
1073 * wait method is: recall(2) for reada(2) and listio(2); aio_suspend(3) for
1077 * only one wait method will be used. The order is predetermined.
1083 * If the LIO_RANDOM method bit is set, this function will randomly
1084 * choose a io type and wait method from bits in the method argument.
1104 int method, /* contains io type and wait method bitmask*/
1111 int ret = 0; /* syscall return or used to get random method */
1114 int omethod = method;
1134 * If LIO_RANDOM bit specified, get new method randomly.
1136 if (method & LIO_RANDOM) {
1138 printf("DEBUG %s/%d: method mask to choose from: %#o\n",
1139 __FILE__, __LINE__, method);
1140 method = lio_random_methods(method);
1142 printf("DEBUG %s/%d: random chosen method %#o\n",
1143 __FILE__, __LINE__, method);
1193 if (method & LIO_IO_SYNCP) {
1195 method &= ~LIO_IO_SYNCP;
1196 method |= LIO_IO_SYNC;
1199 ("DEBUG %s/%d: random chosen method switched to %#o for fifo\n",
1201 method);
1229 if (sig && !(method & LIO_USE_SIGNAL) && !(method & LIO_WAIT_SIGTYPES)) {
1234 if (sig && (method & LIO_WAIT_CBTYPES))
1240 * a sig wait method was specified.
1246 if (sig && (method & LIO_WAIT_SIGTYPES)) {
1257 else if (method & LIO_WAIT_CBTYPES) {
1267 else if (method & LIO_WAIT_CBTYPES) {
1288 if ((method & LIO_IO_SYNC)
1289 || (method & (LIO_IO_TYPES | LIO_IO_ATYPES)) == 0) {
1337 else if (method & LIO_IO_ASYNC) {
1383 else if (method & LIO_IO_SLISTIO) {
1454 ret = lio_check_asyncio(io_type, size, &aiocbp, method);
1459 else if (method & LIO_IO_ALISTIO) {
1522 else if (method & LIO_IO_SYNCV) {
1553 else if (method & LIO_IO_SYNCP) {
1587 printf("DEBUG %s/%d: No I/O method chosen\n", __FILE__,
1597 ret = lio_wait4asyncio(method, fd, statptr);
1600 ret = lio_wait4asyncio(method, fd, &aiocbp);
1631 ret = lio_check_asyncio(io_type, size, &aiocbp, method);
1641 * same method.
1652 int lio_check_asyncio(char *io_type, int size, aiocb_t * aiocbp, int method)
1654 int lio_check_asyncio(char *io_type, int size, struct aiocb *aiocbp, int method)
1698 "%s/%d %s, aio_error had to loop on EINPROGRESS, cnt=%d; random method %#o; sigev_notify=%s",
1699 __FILE__, __LINE__, io_type, cnt, method,
1714 "%s/%d %s, aio_error = %d %s; random method %#o",
1716 ret, strerror(ret), method);
1756 * If no wait method was specified the default wait method is: recall(2)
1767 int lio_wait4asyncio(int method, int fd, struct iosw **statptr)
1769 int lio_wait4asyncio(int method, int fd, aiocb_t * aiocbp)
1771 int lio_wait4asyncio(int method, int fd, struct aiocb *aiocbp)
1783 if ((method & LIO_WAIT_RECALL)
1785 || (method & LIO_WAIT_CBSUSPEND)
1786 || (method & LIO_WAIT_SIGSUSPEND)
1788 || ((method & LIO_WAIT_TYPES) == 0)) {
1790 * If method has LIO_WAIT_RECALL bit set or method does
1791 * not have any wait method bits set (default), use recall/aio_suspend.
1795 printf("DEBUG %s/%d: wait method : recall\n", __FILE__,
1807 ("DEBUG %s/%d: wait method : aio_suspend, sigev_notify=%s\n",
1852 } else if (method & LIO_WAIT_ACTIVE) {
1854 printf("DEBUG %s/%d: wait method : active\n", __FILE__,
1883 } else if (method & LIO_WAIT_SIGPAUSE) {
1885 printf("DEBUG %s/%d: wait method : sigpause\n",
1899 } else if (method & LIO_WAIT_SIGACTIVE) {
1901 printf("DEBUG %s/%d: wait method : sigactive\n",
1923 } else if (method & LIO_WAIT_NONE) {
1925 printf("DEBUG %s/%d: wait method : none\n", __FILE__,
1944 printf("DEBUG %s/%d: no wait method was chosen\n",
1964 int method;
2002 int method;
2033 if ((method = lio_parse_io_arg2(symbols, &err)) == -1) {
2041 symbols, method);
2051 if ((ret = lio_write_buffer(fd, method, buffer,
2066 if ((ret = lio_read_buffer(fd, method, buffer,
2105 if ((ret = lio_write_buffer(fd, Unit_info[ind].method, buffer,
2110 Unit_info[ind].method, size, Unit_info[ind].sig,
2127 if ((ret = lio_read_buffer(fd, Unit_info[ind].method, buffer,
2132 Unit_info[ind].method, size, Unit_info[ind].sig,