Netlink (Kernel 2.6.10) on ARM
Hi, everybody.
While developing a driver which has to run on an ARM platform I used the following very simple netlink example code : Sender in userspace Code:
#include <sys/socket.h> Receiver as kernel module Code:
#include <linux/config.h> |
So, just to solve this thread :
The code above does not contain any errors. I just didn't compile the kernel sources correctly. Although I thought my code just needs to include some headers from the kernel sources and * EVEN my code compiled and linked through without any errors, * EVEN it was executable on the target platform, * EVEN it did not notify any runtime error it just showed a wrong behaviour as described in the request. I've never experienced such a well hidden, scummy, beastly error! %$#@@ !!!. After caring for that the kernel sources itself compile without errors, my code executed without errors on the target platform after recompilation. I've always thought a semantic misbehaviour of a program always must be caused by a semantic error in the user's code - but got the painful counter evidence here. |
All times are GMT -5. The time now is 12:02 AM. |