Lines Matching defs:f_data

183 #define f_data f_fglob->fg_data
901 ((struct socket *)fp->f_data)->so_pgid = tmp;
926 *(int *)datap = ((struct socket *)fp->f_data)->so_pgid;
2340 socket_lock((struct socket *)fp->f_data, 1);
2341 np = ((struct socket *)fp->f_data)->so_evlist.tqh_first;
2344 PIPE_LOCK((struct pipe *)fp->f_data);
2345 np = ((struct pipe *)fp->f_data)->pipe_evlist.tqh_first;
2366 socket_unlock((struct socket *)fp->f_data, 1);
2369 PIPE_UNLOCK((struct pipe *)fp->f_data);
2384 TAILQ_INSERT_TAIL(&((struct socket *)fp->f_data)->so_evlist, evq, ee_slist);
2385 postevent((struct socket *)fp->f_data, 0, EV_RWBYTES); // catch existing events
2387 socket_unlock((struct socket *)fp->f_data, 1);
2391 TAILQ_INSERT_TAIL(&((struct pipe *)fp->f_data)->pipe_evlist, evq, ee_slist);
2392 postpipeevent((struct pipe *)fp->f_data, EV_RWBYTES);
2394 PIPE_UNLOCK((struct pipe *)fp->f_data);
2579 socket_lock((struct socket *)fp->f_data, 1);
2580 evq = ((struct socket *)fp->f_data)->so_evlist.tqh_first;
2583 PIPE_LOCK((struct pipe *)fp->f_data);
2584 evq = ((struct pipe *)fp->f_data)->pipe_evlist.tqh_first;
2609 socket_unlock((struct socket *)fp->f_data, 1);
2612 PIPE_UNLOCK((struct pipe *)fp->f_data);
2624 TAILQ_REMOVE(&((struct socket *)fp->f_data)->so_evlist, evq, ee_slist);
2625 socket_unlock((struct socket *)fp->f_data, 1);
2629 TAILQ_REMOVE(&((struct pipe *)fp->f_data)->pipe_evlist, evq, ee_slist);
2630 PIPE_UNLOCK((struct pipe *)fp->f_data);
2662 socket_unlock((struct socket *)fp->f_data, 1);
2665 PIPE_UNLOCK((struct pipe *)fp->f_data);
2695 postevent((struct socket *)fp->f_data, 0, flag);
2696 socket_unlock((struct socket *)fp->f_data, 1);
2700 postpipeevent((struct pipe *)fp->f_data, flag);
2701 PIPE_UNLOCK((struct pipe *)fp->f_data);
2704 KERNEL_DEBUG(DBG_MISC_MOD|DBG_FUNC_END, evq->ee_req.er_handle,evq->ee_eventmask,(uint32_t)fp->f_data,flag,0);
2719 socket_lock((struct socket *)fp->f_data, 1);
2720 evq = ((struct socket *)fp->f_data)->so_evlist.tqh_first;
2724 PIPE_LOCK((struct pipe *)fp->f_data);
2725 evq = ((struct pipe *)fp->f_data)->pipe_evlist.tqh_first;
2741 socket_unlock((struct socket *)fp->f_data, 1);
2744 PIPE_UNLOCK((struct pipe *)fp->f_data);
2754 TAILQ_REMOVE(&((struct socket *)fp->f_data)->so_evlist, evq, ee_slist);
2755 socket_unlock((struct socket *)fp->f_data, 1);
2759 TAILQ_REMOVE(&((struct pipe *)fp->f_data)->pipe_evlist, evq, ee_slist);
2760 PIPE_UNLOCK((struct pipe *)fp->f_data);