Conversation
|
Just a quick glance over this PR... Where did the memory alloc+touch+locking go? Some of that code does not make sense only at first glance, but has an important function in conjunction with how pages are mapped in the process. You have moved code and afaics without attribution (didn't look in all details). Regardless, you need to have the GPL header in place too. |
That was here: https://github.com/LinuxCNC/linuxcnc/blob/master/src/rtapi/uspace_rtapi_app.cc#L814 I tried to change nothing there. The only change was this to avoid having an instance pointer: c8af827 It was added here but I don't understand the description, so I left it (nearly) as it was: cbbd8e5
Sure, I will do that. |
|
So, the lost GPL headers are restored and I added them where missing by tracking the author/date in git. I hope that is fine to. |
Right, didn't see that. Good. If you please also get rid of the I'm not sure I would have done While you are at it, you moved quite a bit of code to a different file (without renaming so git doesn't track that as nicely; no prob). You might also want to run it through clang-format. Now that all lines are changes anyway... Better make that indent thingy consistent too (see also #2760 as a starting point). There may still be some things afterwards you'd want to reformat manually, but it does give a better starting point.
This I need to evaluate in more detail. I'll get back to you on that one...
Well, you are also falling into the "it was added I don't know why and don't understand" trap. That seems to be a more regular feeling than I'd like it to be. ;-)
Great! |
Still WIP, i have to review and refine the changes if there are fine for the admin's.
Target: Move some classes out of the huge uspace_rtapi_app.cc
uspace_rtapi_main: Contains the main function and helpers
uspace_rtapi_app: Contains the RtapiApp class
uspace_posix: Contains the PosixApp class
Other fixes:
All real time implementations are now library's and handled the same way.
Sadly, rename tracking broke due to the amount of moved code, so it is a crap to review.
The following commands make it easier:
Do you think this is fine? So I will finalize it.
Advantage:
Disadvantage: