kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Netlink socket returns NULL in vmx.c kernel file
@ 2019-10-23  2:43 Irfan Ullah (울라 이르판)
  2019-10-23  5:38 ` Valdis Klētnieks
  0 siblings, 1 reply; 7+ messages in thread
From: Irfan Ullah (울라 이르판) @ 2019-10-23  2:43 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 1029 bytes --]

Dear All,
I am posting again the same problem that is "Netlink socket creation
returns NULL" when I try to create it in handle_ept_violation() in the
vmx.c file. Actually, I am trying to use netlink to send information (i.e.,
guest physical address) from kernel space to user space.
The netlink socket creation is not working in the context of vmx.c, but it
works perfectly when I test my code in a kernel module and load it. Code is
in the attachement.
I have tested many things such as shared memory, kernel thread, sleep
function, etc. but nothing worked out.
Can you please what's the problem?

*What's the best too/way that can provide full duplex (two-way)
communication between kernel and user spaces in any context (from any
kernel source file)*.
Thank you.
-- 
*Best Regards,*


*Mr. Irfan Ullah*
PhD Candidate
Data and Knowledge Engineering(DKE) Lab
Department of Computer Science and Engineering
Kyung Hee University, South Korea.
 +82-010-591-51651 <+82%2010-3877-8867>
  sahibzada.iu@gmail.com
 sahibzada_irfanullah

[-- Attachment #1.2: Type: text/html, Size: 2830 bytes --]

[-- Attachment #2: Kernel_User_comm.zip --]
[-- Type: application/zip, Size: 7514 bytes --]

[-- Attachment #3: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-08  4:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23  2:43 Netlink socket returns NULL in vmx.c kernel file Irfan Ullah (울라 이르판)
2019-10-23  5:38 ` Valdis Klētnieks
2019-11-05  3:29   ` Irfan Ullah (울라 이르판)
2019-11-05  7:22     ` Greg KH
2019-11-05  8:59       ` Irfan Ullah (울라 이르판)
2019-11-05 10:43         ` Valdis Klētnieks
2019-11-08  4:54           ` Irfan Ullah (울라 이르판)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).