On Thu, Dec 15, 2022 at 11:59 AM Greg KH <[email protected]> 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 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 global declaration of arrays.
>
> As they are not on the stack, they are fine.  See the kernel source for
> lots of examples of this.

Can you point me to one?

_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to