adding proc to allproc
Julian Elischer
julian at elischer.org
Fri Dec 19 21:27:24 PST 2008
Ferner Cilloniz wrote:
> Hello everyone.
>
> I am playing with freebsd and just learning some things about the
> FreeBSD kernel.
>
> So for my first quest i am placing random processes from the allproc
> list into a list of my own and trying to add them back into allproc
>
> I have pasted the code below.
>
> -----------------------------------------------------------------------
> struct proc *p = a process from my own list;
> if( p != NULL && (p->p_state == PRS_NEW || p->p_state == PRS_NORMAL) ){
> LIST_INSERT_HEAD(&allproc, p, p_list);
> }
> -----------------------------------------------------------------------
>
> Thanks.
and your question is?
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers
mailing list