| 1 |
typedef struct tux_req_struct tux_req_t; |
| 2 |
struct tux_req_struct |
| 3 |
{ |
| 4 |
struct socket *sock; |
| 5 |
char usermode; |
| 6 |
char *userbuf; |
| 7 |
unsigned int userlen; |
| 8 |
char error; |
| 9 |
void *private; |
| 10 |
}; |
| 11 |
int add_output_space_event(tux_req_t *req, struct socket *); |
| 12 |
void del_tux_atom(tux_req_t *req); |
| 13 |
void add_req_to_workqueue(tux_req_t *req); |
| 14 |
void user_send_buffer (tux_req_t *req, int cachemiss) |
| 15 |
{ |
| 16 |
int ret; |
| 17 |
repeat: |
| 18 |
switch (ret) { |
| 19 |
case -11: |
| 20 |
if (add_output_space_event(req, req->sock)) { |
| 21 |
del_tux_atom(req); |
| 22 |
goto repeat; |
| 23 |
} |
| 24 |
do { } while (0); |
| 25 |
break; |
| 26 |
default: |
| 27 |
add_req_to_workqueue(req); |
| 28 |
} |
| 29 |
} |