tech-kern archive

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

Re: lwp resource limit



On Jun 8,  5:10pm, matt%3am-software.com@localhost (Matt Thomas) wrote:
-- Subject: Re: lwp resource limit

| 
| 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

And what is new_maxlwp?

christos


Home | Main Index | Thread Index | Old Index