27 lines
699 B
C
27 lines
699 B
C
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);
|
|
}
|
|
}
|