idr: IDs guaranteed to be less than 1<<31? (was Re: [PATCH] firewire: us an idr rather than a linked list for resources)



Jay Fenlason wrote at linux1394-devel:
As mentioned in the comments, there is a theoretical problem with this
code if someone manages to allocate 2^31 resources on a 32-bit
machine, or 2^32+1 resources on a 64+-bit machine.

The kerneldoc of idr_get_new() says that we only get IDs in the range of
0...0x7fffffff. But is this true with 64bit kernels?
--
Stefan Richter
-=====-==--- =-== ==---
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: OT - Government Compensation Control
    ... branch of law (bankruptcy law) is dedicated to telling businesses how to ... allocate their resources. ...
    (rec.gambling.poker)
  • Re: Production management: can MS Project help?
    ... So it can't assign resources automatically. ... my project due dates and quantities and allocate resources manually, ... his capacity is 300 a day, will I be able to recognize at a glance that I can ... automates project allocation between different employees" ...
    (microsoft.public.project)
  • Re: best way to assign resources
    ... later change the Duration of a task, once again Project will recalculate the ... "We wrote the book on Project Server" ... > I have almost 300 tasks and about 8 resources. ... > I would like to allocate tasks to these resources such that the ...
    (microsoft.public.project)
  • Re: OT - Government Compensation Control
    ... branch of law (bankruptcy law) is dedicated to telling businesses how to ... allocate their resources. ...
    (rec.gambling.poker)
  • Re: task resource allocation discrepancy: 0hrs<>80%
    ... Welcome to this Microsoft Project newsgroup:) ... A lot depends on how and when you allocate resources. ... a look at my series on Microsoft Project in the TechTrax ezine, ...
    (microsoft.public.project)