lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0710041957500.13406@fbirervta.pbzchgretzou.qr>
Date:	Thu, 4 Oct 2007 20:04:14 +0200 (CEST)
From:	Jan Engelhardt <jengelh@...putergmbh.de>
To:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Finding a free range (idr, blockdev)

Hi,


I'd like to register a blkdev region, much like

	blk_register_region(MKDEV(major, first_minor), number_minors, 
		            xmodule, xprobe, xlock, xdata);

number_minors is known, but how do I decide what first_minor to use?
Module owns the full major number, so I thought I could use an idr map,
but there does not seem to be a function that marks a range used.
(Something along idr_get_new_range(&my_idr, ptr, &new_id, range_len)
would have been cool.)
Ideas on how to proceed?


Thanks,
Jan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ