tech-kern archive

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

Re: Modularizing net80211 (was: link_set info needed)



On Fri, Apr 27, 2012 at 06:34:40AM -0700, Paul Goyette wrote:
> On Fri, 27 Apr 2012, Joerg Sonnenberger wrote:
> 
> >On Fri, Apr 27, 2012 at 05:51:30AM -0700, Paul Goyette wrote:
> >>3. Replacing the use of link_set with direct calls to all of the
> >>   crypto/auth initializers.
> >
> >I believe this to a noticable regression due to bugs in the module
> >framework. It should support either link sets or _init sections.
> >If the latter is supposed to be the way forward, current linkset usage
> >should be adjusted and an appropiate place in the kernel for calling all
> >static initializers be found.
> 
> Thanks for the feedback.  I am not familiar with the "_init
> sections" stuff - can you provide a reference or example?

That's effectively how __attribute__((constructor)) or the corrsponding
C++ functionality is implemented. The necessary clue in userland is
crt*.o, would wouldn't be that hard to adopt for kernel usage.

Joerg


Home | Main Index | Thread Index | Old Index