Article View: comp.unix.programmer
Article #3228Re: Q: How can i expand the stack size from 4K to 8K in kernel driver?
From: Bela Lubkin
Date: Thu, 18 Dec 1997 00:00
Date: Thu, 18 Dec 1997 00:00
28 lines
2676 bytes
2676 bytes
Joss Shen wrote: > I'm doing a big network driver under Banyan Vines 7.0 (derived from AT&T > SysV source tree). My problem is: the default 4K stack size is too small > to my driver, how can i expand it to e.g. 8Kb? Is there any tunable > parameter could make it done easily? I *think* the OS you're asking about is SVR3-based. In which case there is no reasonable way to expand the kernel stack, so you must mend your ways. Don't consume so much stack. Avoid large local variables. Avoid true recursion (if you *must* recurse, do it with a loop and a software-maintained stack). Use kmem_alloc() if it's available. > Newsgroups: comp.unix.programmer,bit.listserv.banyan-l,comp.unix.sco.programmer,comp.unix.sys5.misc,comp.unix.sys5.r3,comp.unix.sys5.r4,comp.unix.sysv386,comp.unix.solaris This is way too many newsgroups. Is it an SVR3 or SVR4 kernel? Post to that group, not the other, not misc, not the really generic groups like comp.unix.programmer. If it is SVR3-based that you might be right to post to comp.unix.sco.programmer; if it's SVR4-based then the solaris group might be appropriate. >Bela< -- Sandy & Bela Lubkin are traveling around the world for a year! Telecommuting from Edinburgh, Scotland; Ireland next. +Please do not Cc: me on news posts! Our stories and pictures are at: http://www.armory.com/~alexia/trip/trip.html
Technical Details
Message-ID:
<9712180019.aa12737@vagabond.armory.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3496CC94.79F5CCA@activetouch.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,8c04ba85abd170bc X-Google-Attributes: gidfc89c,public X-Google-Thread: 1048e3,8c04ba85abd170bc X-Google-Attributes: gid1048e3,public X-Google-Thread: fa664,8c04ba85abd170bc X-Google-Attributes: gidfa664,public X-Google-Thread: f6a6c,8c04ba85abd170bc X-Google-Attributes: gidf6a6c,public X-Google-Thread: 105b29,8c04ba85abd170bc X-Google-Attributes: gid105b29,public X-Google-Thread: 102233,8c04ba85abd170bc X-Google-Attributes: gid102233,public X-Google-Thread: 11035d,8c04ba85abd170bc X-Google-Attributes: gid11035d,public X-Google-Thread: 10c665,8c04ba85abd170bc X-Google-Attributes: gid10c665,public From: Bela Lubkin <belal@sco.com> Subject: Re: Q: How can i expand the stack size from 4K to 8K in kernel driver? Date: 1997/12/18 Message-ID: <9712180019.aa12737@vagabond.armory.com> X-Deja-AN: 299222071 Sender: news@xenitec.on.ca (xenitec.on.ca News Administrator) References: <3496CC94.79F5CCA@activetouch.com> Resent-By: mmdf@xenitec.on.ca Submit-To: scoprg@xenitec.on.ca Organization: work for SCO, speak for myself Newsgroups: comp.unix.programmer,bit.listserv.banyan-l,comp.unix.sco.programmer,comp.unix.sys5.misc,comp.unix.sys5.r3,comp.unix.sys5.r4,comp.unix.sysv386,comp.unix.solaris