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