tech-kern archive

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

Re: lwp resource limit



Matt Thomas <matt%3am-software.com@localhost> wrote:
> 
> On Jun 8, 2012, at 4:47 PM, Matt Thomas wrote:
> > 
> > Rather than have all the #ifdef __HAVE_CPU_MAXLWP how about doing
> > 
> > #ifndef __HAVE_CPU_MAXLWP
> > static inline int
> > cpu_maxlwp(void)
> > {
> >     return maxlwp;
> > }
> > #endif
> > 
> > in an appropriate header file?
> 
> Or maybe
> 
> static inline int
> cpu_maxlwp(int new_maxlwp)
> {
>       return new_maxlwp;
> }
> 
> So that maxlwp can be made static to kern_lwp.c

Yes, ideally it would be static.  That sysctl in init_main.c should also
be moved to kern_lwp.c (can be initialised from lwp_sysinit() routine).

-- 
Mindaugas


Home | Main Index | Thread Index | Old Index