Re: large global static arrays

2022-12-14 Thread Ani Sinha
On Thu, Dec 15, 2022 at 12:12 PM Greg KH wrote: > > On Thu, Dec 15, 2022 at 12:01:37PM +0530, Ani Sinha wrote: > > On Thu, Dec 15, 2022 at 11:59 AM Greg KH wrote: > > > > > > On Thu, Dec 15, 2022 at 11:44:32AM +0530, Ani Sinha wrote: > > > > Hi > > > > > > > > I’m curious to know whether large

Re: large global static arrays

2022-12-14 Thread Greg KH
On Thu, Dec 15, 2022 at 12:01:37PM +0530, Ani Sinha wrote: > On Thu, Dec 15, 2022 at 11:59 AM Greg KH wrote: > > > > On Thu, Dec 15, 2022 at 11:44:32AM +0530, Ani Sinha wrote: > > > Hi > > > > > > I’m curious to know whether large static arrays can be declared inside > > > any module ( kernel

Re: large global static arrays

2022-12-14 Thread Ani Sinha
On Thu, Dec 15, 2022 at 11:59 AM Greg KH wrote: > > On Thu, Dec 15, 2022 at 11:44:32AM +0530, Ani Sinha wrote: > > Hi > > > > I’m curious to know whether large static arrays can be declared inside > > any module ( kernel source .c file). > > Yes. > > > I am aware that kernel stack > > space can

Re: large global static arrays

2022-12-14 Thread Greg KH
On Thu, Dec 15, 2022 at 11:44:32AM +0530, Ani Sinha wrote: > Hi > > I’m curious to know whether large static arrays can be declared inside > any module ( kernel source .c file). Yes. > I am aware that kernel stack > space can be limited and so within the function it’s not a good idea > to

Re: large global static arrays

2022-12-14 Thread Paulo Miguel Almeida
On Thu, Dec 15, 2022 at 11:44:32AM +0530, Ani Sinha wrote: > Hi > > I’m curious to know whether large static arrays can be declared inside > any module ( kernel source .c file). I am aware that kernel stack > space can be limited and so within the function it’s not a good idea > to declare large

large global static arrays

2022-12-14 Thread Ani Sinha
Hi I’m curious to know whether large static arrays can be declared inside any module ( kernel source .c file). I am aware that kernel stack space can be limited and so within the function it’s not a good idea to declare large sized arrays. I’m just wondering if the same restriction applies to