This should provide much higher resistence against struct thread layout changes for out-of-tree modules depending on linuxkpi.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Oops, I forgot to submit, sorry.
| sys/compat/linuxkpi/common/src/linux_compat.c | ||
|---|---|---|
| 174 | I don't really understand the namespacing in linuxkpi. When does one use linux_ vs. lkpi_ vs. __lkpi_? | |
Sorry, committed a second before seeing your accept mail.
| sys/compat/linuxkpi/common/src/linux_compat.c | ||
|---|---|---|
| 174 | I do not know either. I used __llkpi to clearly indicate that the symbol is in the implementation namespace. | |
In theory there is:
linux_ whichwe are trying to phase out as that is linuxolator really but there is lots of historic stuff like that.
linuxkpi_ and lkpi_ both came up and were used differently; the current way goes:
linuxkpi_ are all the pulbic LinuxKPI (Linux KPI) functions (#defined, aliased by an inline wrapper function).
lkpi_ is internal symbols which do not resemble Linux KPI. Due to history there is a bit of Linux KPI still.
I have a mostly done man page somewhere to document that; stay tuned for another few months ;(