Kevin Kofler (./2644) :
http://www.kernel.org/doc/Documentation/stable_api_nonsense.txt
http://tirania.org/blog/archive/2012/Aug-29.htmlEn plus ton article commence mal :
Please
consider the following facts about the Linux kernel:
- Depending on the version of the C compiler you use, different kernel
data structures will contain different alignment of structures, and
possibly include different functions in different ways (putting
functions inline or not.) The individual function organization
isn't that important, but the different data structure padding is
very important.
Ca se regle assez facilement avec soit des options de compilations, soit des options dans le code ce genre de pseudo probleme. Et fixer ce genre de choses est le propre MEME d'une ABI, sinon je parle meme pas des problèmes qu'on aurais en UserLand, pourtant.. On n'en a pas, bizzare non?
- Depending on what kernel build options you select, a wide range of
different things can be assumed by the kernel:
- different structures can contain different fields
- Some functions may not be implemented at all, (i.e. some locks
compile away to nothing for non-SMP builds.)
- Memory within the kernel can be aligned in different ways,
depending on the build options.
Ca c'est au kernel de fourni un mechanisme pour ce gnere de soucis, si il n'y a pas c'est que c'est mal designé.
- Linux runs on a wide range of different processor architectures.
There is no way that binary drivers from one architecture will run
on another architecture properly.
Nonsense. Un binaire n'est pas nature pas compatible tout CPU, cet argument est absolument invalide.