From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Horman Subject: Re: daemon process problem in DPDK Date: Mon, 12 Jan 2015 09:52:10 -0500 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 Cc: "dev-VfR2kkLFssw@public.gmane.org" To: "Ni, Xun" Return-path: Content-Disposition: inline In-Reply-To: <91E2D863603AD4478F101CE81E76E45D01C3839B-0J0gbvR4kTggGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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