Content-Type: multipart/mixed; boundary="===============8758171015183062935==" MIME-Version: 1.0 From: Harris, James R Subject: Re: [SPDK] Questions about struct spdk_ring Date: Thu, 22 Aug 2019 17:26:28 +0000 Message-ID: In-Reply-To: To: spdk@lists.01.org --===============8758171015183062935== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable =EF=BB=BFOn 8/22/19, 10:11 AM, "SPDK on behalf of chanzk(a)m.scnu.edu.cn" <= spdk-bounces(a)lists.01.org on behalf of chanzk(a)m.scnu.edu.cn> wrote: Hello SPDK, I know struct spdk_ring is actually struct rte_ring and the functio= ns about spdk_ring are based on all based on DPDK one. But I found that str= uct spdk_ring is incomplete type so that I can not use it directly. So my q= uestion is how to use this struct ? = = At your convenience, would you please answer my questions? Hi, spdk_ring can be used with the spdk_ring_create, spdk_ring_free, spdk_ring_= count, etc. functions defined in include/spdk/env.h. Those functions shoul= d be sufficient for any operations you need to perform on an spdk_ring. The env.h API purposely does not expose a structure definition for spdk_rin= g. The DPDK implementation of the SPDK env API (see lib/env_dpdk/env.c) ju= st aliases spdk_ring to DPDK's rte_ring, but other implementations of the A= PI may decide to do it differently. Regards, Jim = Thank you ! = Wish you a good day ! = Regards, Zhenke Chan _______________________________________________ SPDK mailing list SPDK(a)lists.01.org https://lists.01.org/mailman/listinfo/spdk = --===============8758171015183062935==--