From owner-svn-src-head@freebsd.org Thu Nov 21 20:07:53 2019 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4ABB71C98D7; Thu, 21 Nov 2019 20:07:53 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47JrG11D8kz3N3X; Thu, 21 Nov 2019 20:07:52 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-oi1-f181.google.com with SMTP id e9so4373598oif.8; Thu, 21 Nov 2019 12:07:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=05gWfSiXbWZpz/jDlrjnUKeI6YmiCcJJNFrYMqDIpY4=; b=SwHYFIOS1Erq+Kj2/ULkZn8w32bj1ppVNLLShxLJoiz9lFySeQgOaS+FhV9/MtN84J ekgt4YL5QOKXT6YTzJiVQ1lMHKyzVoYZwHmLiL80A8cmWNF3uQJCreZdKDjTGB42il/U T/r+38mteKt4cf73TY2A0PHAV+qrzqRzd5rpFY3exbfbdXcXNWoum18oeDgq+5X9g+VM po1VKL/UO4aVvbempx14mLtoCWrqGjPzT2SbCRSGZbcKKOD4IK9xCKRG0h8+EHN2jgo4 ootfNtbBBM6mdQD+nnvZsZSknYTpVt+LPPjuidEny5qf47enMOnq9g9R7ZX0mf6Bfm7j Hokg== X-Gm-Message-State: APjAAAVD9WVjqMlWjvJbTFGkl6X8Jp9lsxAnVRKwa4uuKHPUBydmBJpq yIaAwbmKYwjGtfMMPPQXsc0N8a9G X-Google-Smtp-Source: APXvYqwScCRx6DQzsQW/ASNA5TR33RpVEe0gKLW761MhvUXCULtvzTMIAVSuOtdmq7QQP5G3c4T0xA== X-Received: by 2002:aca:7293:: with SMTP id p141mr9395086oic.88.1574366871382; Thu, 21 Nov 2019 12:07:51 -0800 (PST) Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com. [209.85.167.174]) by smtp.gmail.com with ESMTPSA id r4sm1333037otg.55.2019.11.21.12.07.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Nov 2019 12:07:51 -0800 (PST) Received: by mail-oi1-f174.google.com with SMTP id n16so4414228oig.2; Thu, 21 Nov 2019 12:07:51 -0800 (PST) X-Received: by 2002:aca:6006:: with SMTP id u6mr9380231oib.137.1574366870956; Thu, 21 Nov 2019 12:07:50 -0800 (PST) MIME-Version: 1.0 References: <201911211957.xALJvuwi054399@repo.freebsd.org> In-Reply-To: <201911211957.xALJvuwi054399@repo.freebsd.org> Reply-To: cem@freebsd.org From: Conrad Meyer Date: Thu, 21 Nov 2019 12:07:40 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r354977 - in head: share/man/man3 sys/sys tests/sys/sys To: Eric Joyner Cc: src-committers , svn-src-all , svn-src-head Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47JrG11D8kz3N3X X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2019 20:07:53 -0000 Hi Eric, On Thu, Nov 21, 2019 at 11:58 AM Eric Joyner wrote: > > Author: erj > Date: Thu Nov 21 19:57:56 2019 > New Revision: 354977 > URL: https://svnweb.freebsd.org/changeset/base/354977 > > Log: > bitstring: add functions to find contiguous set/unset bit sequences > > Add bit_ffs_area_at and bit_ffc_area_at functions for searching a bit > string for a sequence of contiguous set or unset bits of at least the > specified size. > > The bit_ffc_area function will be used by the Intel ice driver for > implementing resource assignment logic using a bitstring to represent > whether or not a given index has been assigned or is currently free. I don't know what the ice driver is/does, so apologies if this is nonsensical. Would it make more sense to use vmem(9) for this purpose? It's a general-purpose resource allocator and can scale well with large numbers of resources / CPUs. Best, Conrad