doubts in socket programming in kernel space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I am having few doubts in socket programming in kernel space. I have
listed it below:
1) How to create a socket in kernel space. Should sock_create or
sys_socket need to be used ? tried with sock_create but it is always
returning zero. Is this correct ? Also sock_create take an argument
called struct socket. What should be done with it ?
If I am using sys_socket, while inserting the module (using insmod)
its saying "unresolved symbol sys_socket" what should be done to make
it work ?

2) When socket is created using sock_create, its returnin zero. When i
am binding the same its also rerurning zero !! is it bounded ?

3) What is the equivalent for select (which is used in user space) in
kernel space ?

4) One common doubt that i have is how to make the module that i have
inserted to sleep for few seconds/ milliseconds
msleep, usleep are not working as when inserted it says "unresolved
symbol msleep"  etc

Plz help me 

Regards
Sabari

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux