Re: __initdata query

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

 



On Sat, 15 Mar 2008, Thomas Petazzoni wrote:

> Le Fri, 14 Mar 2008 12:30:53 -0400 (EDT),
> "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx> a écrit :
>
> > yes, i think we've established what's happening.  as long as a
> > module parameter is defined with access rights of zero, it can be
> > tagged as __initdata.
>
> No, I don't think so. A module parameter can be marked __initdata if
> it's only used during initialization of the module (call to the
> function specified by module_init()).
>
> So you could imagine a module parameter with access rights != 0, but
> used outside of the initialization code. In that case, it should not
> be marked __initdata.

by the way, i did point out in a subsequent posting how you can make a
parameter available in userspace and still tag it as __initdata, which
will build but is a kernel panic waiting to happen.

i wonder if there's any way to trap that during the kernel compile.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux