* A question about priority search tree in kernel 2.6.24
@ 2017-02-11 15:42 Hao Lee
2017-02-11 16:00 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Hao Lee @ 2017-02-11 15:42 UTC (permalink / raw)
To: kernelnewbies
Hi, all
Recently I'm reading "Professional Linux Kernel Architecture" while
referencing the source code of kernel 2.6.24 and I have a question about
priority search tree.
In prio_tree_init function (
http://lxr.free-electrons.com/source/lib/prio_tree.c?v=2.6.24#L71), array
index_bits_to_maxindex is initialized to 1,3,7,15,31...2^(i+1)-1. I don't
know why it is initialized to these numbers and what is the relationship
between index_bits_to_maxindex and prio_tree_root->index_bits.
Could someone help me? Many Thanks!
Regards,
Hao Lee.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170211/9e1094a2/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-11 16:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-11 15:42 A question about priority search tree in kernel 2.6.24 Hao Lee
2017-02-11 16:00 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).