Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752377Ab0DIMfp (ORCPT ); Fri, 9 Apr 2010 08:35:45 -0400 Received: from ixro-out-rtc.ixiacom.com ([92.87.192.98]:4266 "EHLO ixro-ex1.ixiacom.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751917Ab0DIMfl (ORCPT ); Fri, 9 Apr 2010 08:35:41 -0400 From: Octavian Purdila Organization: Ixia To: Changli Gao Subject: Re: [Patch 2/3] sysctl: add proc_do_large_bitmap Date: Fri, 9 Apr 2010 15:35:38 +0300 User-Agent: KMail/1.12.2 (Linux/2.6.32-2-686; KDE/4.3.2; i686; ; ) Cc: Amerigo Wang , linux-kernel@vger.kernel.org, ebiederm@xmission.com, Eric Dumazet , netdev@vger.kernel.org, Neil Horman , David Miller References: <20100409101442.5051.99812.sendpatchset@localhost.localdomain> <20100409101503.5051.3805.sendpatchset@localhost.localdomain> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201004091535.38714.opurdila@ixiacom.com> X-OriginalArrivalTime: 09 Apr 2010 12:35:39.0373 (UTC) FILETIME=[2948C9D0:01CAD7E1] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 934 Lines: 22 On Friday 09 April 2010 13:33:29 you wrote: > On Fri, Apr 9, 2010 at 6:11 PM, Amerigo Wang wrote: > > From: Octavian Purdila > > > > The new function can be used to read/write large bitmaps via /proc. A > > comma separated range format is used for compact output and input > > (e.g. 1,3-4,10-10). > > > > Writing into the file will first reset the bitmap then update it > > based on the given input. > > We have bitmap_scnprintf() and bitmap_parse_user(), why invent a new suite? > A decimal comma separated ranges seems the best option for this feature, and unfortunately both of the above functions only support hexadecimal and no ranges. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/