From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751928AbWCYRWH (ORCPT ); Sat, 25 Mar 2006 12:22:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751922AbWCYRWH (ORCPT ); Sat, 25 Mar 2006 12:22:07 -0500 Received: from zproxy.gmail.com ([64.233.162.201]:52400 "EHLO zproxy.gmail.com") by vger.kernel.org with ESMTP id S1751928AbWCYRUU (ORCPT ); Sat, 25 Mar 2006 12:20:20 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:organization:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=lOwNikkUOKsMcHOuEHVcBWhsAUpCMCWApNigMIfRZuaIfD26mt+CkPreV3wCODe1jV6tDuRuKAvtyZVUu0dia8o9xj/5voIgxM6wn+LwBH7NsQchv6C7t3HFHH2fXZ74q4OGI/HqXN6Shj0uXKwx/WCsit4FMYVaKT+lAfwTepg= Message-ID: <44257CC6.8020109@gmail.com> Date: Sun, 26 Mar 2006 00:24:22 +0700 From: Mikado Reply-To: mikado4vn@gmail.com Organization: IcySpace.net User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Amit Luniya CC: linux-kernel@vger.kernel.org Subject: Re: Help related to socket creation in kernel space References: <20060325050910.25509.qmail@web8705.mail.in.yahoo.com> In-Reply-To: <20060325050910.25509.qmail@web8705.mail.in.yahoo.com> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=65ABD897 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org -----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-----