Also, I have one question, here,
in this link, C is used in the kernel space while Python in the user space. Python program in the user space successfully catches the char[] data, although it has some weird characters which I try to remove using split() function. how it can it be possible to share any type of data structure (e.g., structure, array, etc.) between kernel space C program and user space Python program in two way communication.
Thanks.
Furthermore, @ Valdis Klētnieks,Thank you very much for your useful comments about the performance. And I know that Python is slow but it is machine learning rich library, therefore, after finalizing the method and machine learning model either we will 1) transfer our ready-made model to the kernel space from user space, or 2) we will develop our own library to utilize machine learning in the kernel space in some way.
@All, There is one thing I want to share, although it is not too relevant but worth to share, that very limited number of easy-to-use-&-understand tools and libraries available to welcome and facilitate the newbies/freshmen in the kernel development as compare to other development environments.