Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



> Module Name:    src
> Committed By:   dyoung
> Date:           Fri Jun 26 19:30:46 UTC 2009
> 
> Modified Files:
>         src/sys/kern: kern_pmf.c subr_autoconf.c
>         src/sys/sys: device.h
> 
> Log Message:
> Switch to kmem(9).
> 
> (void *)pew is one way to get a struct work *, but let's
> write&pew->pew_work, instead.  It is more defensive and persuasive.
> 

It seems that pmf_event_inject() is called from interrupt context, from
which kmem(9) cannot be used. You probably want to use pool_cache(9), or
perhaps avoid allocations at all (since they are not intensive).

-- 
Mindaugas


Home | Main Index | Thread Index | Old Index