LWN: Comments on "Shared memory mappings for devices" https://lwn.net/Articles/753481/ This is a special feed containing comments posted to the individual LWN article titled "Shared memory mappings for devices". en-us Sat, 06 Sep 2025 07:05:20 +0000 Sat, 06 Sep 2025 07:05:20 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Shared memory mappings for devices https://lwn.net/Articles/754540/ https://lwn.net/Articles/754540/ giraffedata <p> IBM used to do that in all its manuals as well, and it's an irritating style because acronyms are not abbreviations - they're words in their own right that are better known and have more meaning than the words from which they are derived. Sometimes the acquired meanings even contradict those words. The etymology of the acronym is still useful, of course, but the right way to do it is RAM (Random Access Memory), not Random Access Memory (RAM). <p> RAM is an interesting example, by the way, because words used illogically was another peeve Byte editors had and the magazine never used RAM to mean what most people meant by it: read/write memory. The term in Byte for that was "programmable memory." RAM would appear in Byte only in contrast with sequential access memory. Tue, 15 May 2018 23:52:20 +0000 Shared memory mappings for devices https://lwn.net/Articles/754374/ https://lwn.net/Articles/754374/ dezgeg <div class="FormattedComment"> Maybe IDR could be made a backronym of say, "ID Registry" to hide the radix tree implementation detail.<br> </div> Mon, 14 May 2018 13:16:24 +0000 Shared memory mappings for devices https://lwn.net/Articles/754274/ https://lwn.net/Articles/754274/ cladisch <p>IDR is an ID allocator; the "R" stands for "radix tree", which is just an implementation detail.</p> <p>IDA is an ID <b>a</b>llocator that does not store a data poiner for each ID.</p> Fri, 11 May 2018 16:44:45 +0000 Shared memory mappings for devices https://lwn.net/Articles/754224/ https://lwn.net/Articles/754224/ willy <div class="FormattedComment"> Oh, I have no idea what either IDR or IDA stand for. It's not stated anywhere in the source code. I suppose I could search the mailing lists to find if there was any explanation when they were first published.<br> </div> Fri, 11 May 2018 14:16:47 +0000 Shared memory mappings for devices https://lwn.net/Articles/754197/ https://lwn.net/Articles/754197/ jem <div class="FormattedComment"> Ironically, the documentation you linked to doesn't explain either what IDR or IDA are short for.<br> <p> I miss Byte magazine, which meticulously spelled out an acronym the first time it appeared in an article, no matter how common. For example: "Random Access Memory (RAM)".<br> </div> Fri, 11 May 2018 07:37:52 +0000 Shared memory mappings for devices https://lwn.net/Articles/753930/ https://lwn.net/Articles/753930/ willy <div class="FormattedComment"> <a href="https://www.kernel.org/doc/html/latest/core-api/idr.html">https://www.kernel.org/doc/html/latest/core-api/idr.html</a><br> </div> Tue, 08 May 2018 21:33:58 +0000 Shared memory mappings for devices https://lwn.net/Articles/753929/ https://lwn.net/Articles/753929/ mirabilos <div class="FormattedComment"> What’s an IDR?<br> <p> Asking for my acronyms database…<br> </div> Tue, 08 May 2018 21:29:23 +0000 Shared memory mappings for devices https://lwn.net/Articles/753875/ https://lwn.net/Articles/753875/ Sesse <div class="FormattedComment"> This isn't about this specific post, but it had to go somewhere: Thanks for the LFSMM coverage. Almost all the articles so far have been highly interesting.<br> </div> Tue, 08 May 2018 14:34:19 +0000 Don't make this visible to userspace https://lwn.net/Articles/753784/ https://lwn.net/Articles/753784/ ebiederm <div class="FormattedComment"> This sounds like yet another darn global id that someone is going to make visible to userspace<br> and then it will need to get namespaced and then it's utility for device drivers will be gone.<br> <p> So be very careful and don't even consider making something like this visible to userspace unless you intend to make it globally unique and even then hesitate and make absolutely certain that is what you want.<br> <p> </div> Tue, 08 May 2018 02:39:23 +0000 Shared memory mappings for devices https://lwn.net/Articles/753750/ https://lwn.net/Articles/753750/ luto <div class="FormattedComment"> Would it be u64? It’s quite important that it never gets reused.<br> </div> Mon, 07 May 2018 21:37:17 +0000 Shared memory mappings for devices https://lwn.net/Articles/753748/ https://lwn.net/Articles/753748/ spopuri <div class="FormattedComment"> What is this for exactly? There have been other discussions about representing memory provided by an nvme drive with struct page structures. Is that the use-case? or is it more for things like HMM?<br> </div> Mon, 07 May 2018 21:27:04 +0000 Shared memory mappings for devices https://lwn.net/Articles/753738/ https://lwn.net/Articles/753738/ willy <div class="FormattedComment"> I talked with Dave Hansen about ctx_id already. mm_id can replace it.<br> </div> Mon, 07 May 2018 21:02:14 +0000 Shared memory mappings for devices https://lwn.net/Articles/753735/ https://lwn.net/Articles/753735/ luto <div class="FormattedComment"> On x86, we already have ctx_id. That could easily be moved to core code.<br> </div> Mon, 07 May 2018 20:42:45 +0000 Shared memory mappings for devices https://lwn.net/Articles/753732/ https://lwn.net/Articles/753732/ willy <div class="FormattedComment"> Argh, I missed this session. Thanks for writing this up, Jake!<br> <p> I have a preliminary patch to use an IDR to assign each mm_struct a u32 ID. There are various details around how quickly those can be reused. It actually saves memory (replacing the list_head with a u32). I'll try to get that finished up soon.<br> <p> </div> Mon, 07 May 2018 20:31:33 +0000