On 15.05.11 12:04, Barry Drake wrote:
> On Sat, 2011-05-14 at 12:06 +0100, Tyler J. Wagner wrote:
>> A semaphore with value of 1 is a mutex. That should work fine.
> Thanks.  Now I've had chance to read the links that were posted, I can
> see what it is about.  Anyhow, it is working just fine.  I haven't tried
> this yet, but when I get a kernel upgrade, can I just re-use the
> compiled module or do I have to re-compile?  This is the first time I've
> needed to do anything with kernel modules.
>
> I'm also thinking that if someone has the same dongle and wants help,
> could I simply send them my pre-compiled module and tell them what to do
> with it?  Sorry to ask elementary questions like this.
>
> Regards,              Barry.

These aren't exactly elementary questions!

You will probably need to re-compile for a different version of the
kernel, unless the ABI remains the same. The ABI is the "Application
Binary Interface", and relates to the function calls that the compiled
module will make on the kernel (also known as system calls).
It's always safe to re-compile the module. You might get a failure if
you don't, but it will only mean the module will fail to load and you
won't get WiFi.

As long as the other person is running the same kernel version
(specifically, the same ABI) and architecture (e.g. Intel/AMD 32-bit,
64-bit, ARM are 3 different architectures), the pre-compiled module will
work on another PC.


Of course, you realise that you have now modified and compiled a portion
of the Linux kernel? :-)
You fixed an incompatible API (Application Programming Interface) change.


Cofion/Regards,
Neil.

-- 
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to