From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by gnuweeb.org (Postfix) with ESMTPS id 8C9B57E7AA for ; Sat, 14 Jan 2023 17:19:41 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=kernel-dk.20210112.gappssmtp.com header.i=@kernel-dk.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=x0KXbUfP; dkim-atps=neutral Received: by mail-pl1-f178.google.com with SMTP id d15so26426976pls.6 for ; Sat, 14 Jan 2023 09:19:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=VZKcqO8CvgbPzTQjXVpYsBM4EltM1ofB3aaqH1uEd20=; b=x0KXbUfPpTZzsja58Z6eQjfj4T/mPx+r9H6P1TKXeMf1NvVFdVkR7Q0kJUQRmqxcUr m9XY2WT2dMLxJcsoiddpViiGQ5f3mbHkBuWIbyFAx+260eYvIN8EPTZDh09Ls+Jg1DHI OqTafaP60mS0FBnYVT10JMzLsSzmlV8AgbOkVVsnuj/iq0UfXzBkF9oEAfShiyBWd3ZI DESCX/9ADGTcCyqPBk7Yd2GPf6QDYQGroXeQGITU0ovicMZDXl1B27AMaTpxlRCwtq6f 7FS3GabEjS2hhnTd89B8vStgXC38rIGaeSfT0huwlZIvXOly44xZ4QC/IsJs9OBPqRSL Whcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VZKcqO8CvgbPzTQjXVpYsBM4EltM1ofB3aaqH1uEd20=; b=kNO9BY7On15dpD/4tCgtlj9PtEWkbc+v6lPmghn8ms1YnTJanX9tj1G7kmRp43im1/ FgtX9YXJIcL/60dMxko8aphKwDyL5Roz8biQ3n1r+p5JlOTZhNLIZ5uRvJSg59j9CP9p c9R8wtaUfnmp+DUrvFCV88DrCyPmdmjUDZRI39JRgMg5pYBeDI0ZH2wyAPXLUl7TiQAT vIVfdqkF1vmf2TbyV4PJbx6X190QF6COPwHBHb+D9z7Iz5bMAy4bxX+yQVLASnG9V4DA s8rZEqR4klg/MUgQGToHwt+e16NR8rJWXF4gURzpxFWi1b1NpgNp1fwURI2JYNV9RIzF u23Q== X-Gm-Message-State: AFqh2kotBQ6Mr/4PAatkx6USOwnCTSUGATHIwZ/Qq7Q/IwXHdD5K/Mp9 y6+9zKUU1Sfg1xPrle7mnwjcsQ== X-Google-Smtp-Source: AMrXdXt+BKv411JDYZmI+AygtBO2vkbQpV/+UgQEXqO9ZVhnHz5ZRni1zdObP2U0fPgj+eP3uzwsIQ== X-Received: by 2002:a17:902:704a:b0:193:2d46:abe0 with SMTP id h10-20020a170902704a00b001932d46abe0mr907094plt.6.1673716780857; Sat, 14 Jan 2023 09:19:40 -0800 (PST) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id e6-20020a17090301c600b00192dda430ddsm16130291plh.123.2023.01.14.09.19.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Jan 2023 09:19:40 -0800 (PST) Message-ID: <3d217e11-2732-2b85-39c5-1a3e2e3bb50b@kernel.dk> Date: Sat, 14 Jan 2023 10:19:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [RFC PATCH v1 liburing 2/2] README: Explain about FFI support Content-Language: en-US To: Ammar Faizi Cc: Pavel Begunkov , Christian Mazakas , Gilang Fachrezy , io-uring Mailing List , VNLX Kernel Department , GNU/Weeb Mailing List References: <20230114095523.460879-1-ammar.faizi@intel.com> <20230114095523.460879-3-ammar.faizi@intel.com> From: Jens Axboe In-Reply-To: <20230114095523.460879-3-ammar.faizi@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: On 1/14/23 2:55?AM, Ammar Faizi wrote: > From: Ammar Faizi > > Tell people that they should use the FFI variants when they can't use > 'static inline' functions defined in liburing.h. > > Signed-off-by: Ammar Faizi > --- > README | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/README b/README > index 4dd59f6..7babb3b 100644 > --- a/README > +++ b/README > @@ -71,6 +71,25 @@ Building liburing > See './configure --help' for more information about build config options. > > > +FFI support > +----------- > + > +By default, the build results in 4 lib files: > + > + 2 shared libs: > + > + liburing.so > + liburing-ffi.so > + > + 2 static libs: > + > + liburing.a > + liburing-ffi.a > + > +For languages and applications that can't use 'static inline' functions in > +liburing.h should use the FFI variants. Maybe include something on why they can't use them? And that sentence would be better as: Languages and applications that can't use 'static inline' functions in liburing.h should use the FFI variants. -- Jens Axboe