Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2010 22:47:38 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        Patrick Mahan <mahan@mahan.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Using __attribute__((weak)) in the kernel
Message-ID:  <bc2d971003231947j73f910f4rfe359cb1a39cc335@mail.gmail.com>
In-Reply-To: <4BA97A65.10507@mahan.org>
References:  <4BA97A65.10507@mahan.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I severely doubt that the kernel linker supports that.  I believe that
the only way to accomplish what you're looking for is to leave
function pointers in the kernel that you can call, and your module can
change the function pointers at load/unload.  Don't forget to have
some kind of synchronization to prevent a function pointer from being
called as it is being updated.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bc2d971003231947j73f910f4rfe359cb1a39cc335>