From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 24E875A70 for ; Mon, 12 Jan 2015 15:52:15 +0100 (CET) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YAgLj-0000GN-MJ; Mon, 12 Jan 2015 09:52:13 -0500 Date: Mon, 12 Jan 2015 09:52:10 -0500 From: Neil Horman To: "Ni, Xun" Message-ID: <20150112145210.GC23467@hmsreliant.think-freely.org> References: <91E2D863603AD4478F101CE81E76E45D01C3839B@SHSMSX103.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91E2D863603AD4478F101CE81E76E45D01C3839B@SHSMSX103.ccr.corp.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] daemon process problem in DPDK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 14:52:15 -0000 On Mon, Jan 12, 2015 at 02:28:20PM +0000, Ni, Xun wrote: > Hello: > > I have basic questions related to dpdk and trying to find help. > > I am about to create a daemon process, is there a way for other process to know whether the daemon is already created? I doesn't mean to get the pid, because it changes every time. > > If the daemon is created, how do other process to communicate with this daemon? Dpdk seems to have rte ring but it only exists on the Ethernet, while I am talking about the process within the same computer, and the way like share-memory, but I didn't find examples about the share memory between processes. > > Thanks, > Xun > > Thats not really a dpdk question, that a generic programming question. You can do this lots of ways. Open a socket that other process can connect to on an agreed port, create a shared memory segment, write a file with connect information to a well know location, etc. Neil