On Mon, Dec 11, 2017 at 10:54:51AM +, Chris Wilson wrote:
> Quoting Matthew Wilcox (2017-11-30 17:36:30)
> > About 40 of the approximately 180 users of the IDR in the kernel are
> > "1-based" instead of "0-based". That is, they never want to have ID 0
> > allocated; they want to see IDs alloca
Quoting Matthew Wilcox (2017-11-30 17:36:30)
> About 40 of the approximately 180 users of the IDR in the kernel are
> "1-based" instead of "0-based". That is, they never want to have ID 0
> allocated; they want to see IDs allocated between 1 and N. Usually, that's
> expressed like this:
>
>
On Thu, Nov 30, 2017 at 10:09 PM, Matthew Wilcox wrote:
> On Thu, Nov 30, 2017 at 08:56:43PM +0100, Daniel Vetter wrote:
>> Adding dri-devel, I think a pile of those are in drm.
>
> Yeah, quite a lot! This is a good thing; means you didn't invent your
> own custom ID allocator.
>
>> On Thu, Nov 3
On Thu, Nov 30, 2017 at 08:56:43PM +0100, Daniel Vetter wrote:
> Adding dri-devel, I think a pile of those are in drm.
Yeah, quite a lot! This is a good thing; means you didn't invent your
own custom ID allocator.
> On Thu, Nov 30, 2017 at 6:36 PM, Matthew Wilcox wrote:
> > About 40 of the appr
Adding dri-devel, I think a pile of those are in drm.
On Thu, Nov 30, 2017 at 6:36 PM, Matthew Wilcox wrote:
> About 40 of the approximately 180 users of the IDR in the kernel are
> "1-based" instead of "0-based". That is, they never want to have ID 0
> allocated; they want to see IDs allocated
About 40 of the approximately 180 users of the IDR in the kernel are
"1-based" instead of "0-based". That is, they never want to have ID 0
allocated; they want to see IDs allocated between 1 and N. Usually, that's
expressed like this:
/* Get the user-visible handle using idr. */
6 matches
Mail list logo