Example #1
0
void ncp_tcp_rcv_proc(struct work_struct *work)
{
	struct ncp_server *server =
		container_of(work, struct ncp_server, rcv.tq);

	mutex_lock(&server->rcv.creq_mutex);
	__ncptcp_rcv_proc(server);
	mutex_unlock(&server->rcv.creq_mutex);
}
Example #2
0
void ncp_tcp_rcv_proc(void *s) {
    mm_segment_t fs;
    struct ncp_server *server = s;

    fs = get_fs();
    set_fs(get_ds());
    down(&server->rcv.creq_sem);
    __ncptcp_rcv_proc(server);
    up(&server->rcv.creq_sem);
    set_fs(fs);
    return;
}