2006-03-25 05:09:19

by Amit Luniya

[permalink] [raw]
Subject: Help related to socket creation in kernel space

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


2006-03-25 17:22:07

by Mikado

[permalink] [raw]
Subject: Re: Help related to socket creation in kernel space

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

Amit Luniya wrote:
> 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.....

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-----

2006-03-25 17:26:36

by Mikado

[permalink] [raw]
Subject: Re: Help related to socket creation in kernel space

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

Amit Luniya wrote:
> 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.....

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-----