From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward500c.mail.yandex.net (forward500c.mail.yandex.net [IPv6:2a02:6b8:c03:500:1:45:d181:d500]) by sourceware.org (Postfix) with ESMTPS id 622C83858D28 for ; Fri, 31 Mar 2023 18:47:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 622C83858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net [IPv6:2a02:6b8:c14:7296:0:640:126f:0]) by forward500c.mail.yandex.net (Yandex) with ESMTP id D67EB5EFF4; Fri, 31 Mar 2023 21:47:11 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 9lP7fZGDdiE0-u2uZdSFV; Fri, 31 Mar 2023 21:47:11 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1680288431; bh=T0C+5KbyYdDbAK8xg9bmzMynA5HdoH3r/7RaM6KI1NQ=; h=In-Reply-To:From:Date:References:To:Subject:Message-ID; b=UdxOQ0ZyuWTi0259v9dd8yeSVuMOQiy1EoGDT+zWyoJDw4ItH4s/8C3blF7VB1yJJ OI2q8sIIouKAhi+4rAsb53S9psMcMCqDGI+CZaPuQ9+3XynfQY3M3itosmo1DevrQb ZAhkH5fhSEuqWgDVu5Vx5owTkh9n5QRqvtLBn718= Authentication-Results: mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <592021ae-8f69-d411-c278-054ca003ef47@yandex.ru> Date: Fri, 31 Mar 2023 23:47:08 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v9 0/13] implement dlmem() function Content-Language: en-US To: Szabolcs Nagy , Adhemerval Zanella Netto , libc-alpha@sourceware.org, janderson@rice.edu, Carlos O'Donell , Rich Felker References: <20230318165110.3672749-1-stsp2@yandex.ru> <2f3a10fa-4f79-7f9a-6407-d227dbf31935@yandex.ru> From: stsp In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 31.03.2023 22:12, Szabolcs Nagy пишет: > your dlmem design it passes down a user callback that runs > under dynamic linker locks to map segments. Oh, I missed that sentence initially. No, its not to map segments. Its to do the single initial mmap() only. The segments are of course all mapped by the loader internally. Which is why this callback is optional and should almost never be used. Does this clarification help? Btw, I am thankful to you for reading an API description. Not too many people did that. Carlos and Jonathon definitely did, so I am thankful to them as well.