Skip to contentSkip to conversation

Help related to socket creation in kernel space

DISCUSSION Amit Luniya 2 participants 3 messages Mar 25, 2006

lore
Share & tools
lore
#0 lore raw

Hello sir,
I am final year student of comp. engg. from pune
university. My project is hibernation in network environment. Existing utility of hibernation using "swsusp.c" does not support ping operation or any other n/w related services after resume.
Tell me whether could we create socket in code of
resume in such a way that we can get image back from server? As ping is application layer program does not support operation after resume , so could we do creation of socket and write kernel level network program in resume process and can communicate with server?
We are working on linux kernel 2.6.14.5 .
Please help us as we are hang over our project. Have a good day sir.....

__________________________________________________________
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Amit Luniya

Hello sir,
I am final year student of comp. engg. from pune
university. My project is hibernation in network environment. Existing utility of hibernation using "swsusp.c" does not support ping operation or any other n/w related services after resume.
Tell me whether could we create socket in code of
resume in such a way that we can get image back from

Quoted 8 lines

server? As ping is application layer program does not support operation after resume , so could we do creation of socket and write kernel level network program in resume process and can communicate with server?
We are working on linux kernel 2.6.14.5 .
Please help us as we are hang over our project. Have a good day sir.....

IMO, you can deal with low level socket and sk_buff, in kernel-space. I don't know whether there is other way. If you want to notify the resume process or do something like connecting to a server after resume, I think you better write a small module to pass events to userspace (using kernel-user space linker/connector) then let userspace programs do whatever they want.

Mikado.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEJXzGNWc9T2Wr2JcRAvsbAJ9HulNEBoWdiY7vwT0j6IVCrJWWUwCfZu2p YkO3S1YdxfmQMpZpCO9nKro=
=OXAX
-----END PGP SIGNATURE-----

#2 lore raw
In reply to Amit Luniya

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Amit Luniya

Hello sir,
I am final year student of comp. engg. from pune
university. My project is hibernation in network environment. Existing utility of hibernation using "swsusp.c" does not support ping operation or any other n/w related services after resume.
Tell me whether could we create socket in code of
resume in such a way that we can get image back from

Quoted 8 lines

server? As ping is application layer program does not support operation after resume , so could we do creation of socket and write kernel level network program in resume process and can communicate with server?
We are working on linux kernel 2.6.14.5 .
Please help us as we are hang over our project. Have a good day sir.....

And the last thing, I don't know if network codes is legal in resume process or not.

Mikado.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEJX5ENWc9T2Wr2JcRAsheAJ94lPaw0Gn3B+D5JxyRYFapf6n3TQCg0GQX Br6DYoO+f6w+rE+c3cZ4pWY=
=zYv4
-----END PGP SIGNATURE-----