| 1784 | } |
| 1785 | |
| 1786 | struct cryptop * |
| 1787 | crypto_getreq(crypto_session_t cses, int how) |
| 1788 | { |
| 1789 | struct cryptop *crp; |
| 1790 | |
| 1791 | MPASS(how == M_WAITOK || how == M_NOWAIT); |
| 1792 | crp = uma_zalloc(cryptop_zone, how | M_ZERO); |
| 1793 | if (crp != NULL) |
| 1794 | _crypto_initreq(crp, cses); |
| 1795 | return (crp); |
| 1796 | } |
| 1797 | |
| 1798 | /* |
| 1799 | * Invoke the callback on behalf of the driver. |
no test coverage detected