From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 3 10:01:00 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBAA5106564A for ; Sat, 3 Dec 2011 10:01:00 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 9B5C88FC0A for ; Sat, 3 Dec 2011 10:01:00 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 67AEE5DC0; Sat, 3 Dec 2011 10:00:59 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.5/8.14.5) with ESMTP id pB3A0xXg011077; Sat, 3 Dec 2011 10:00:59 GMT (envelope-from phk@phk.freebsd.dk) To: Filippo Sironi From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 03 Dec 2011 10:19:43 +0100." Content-Type: text/plain; charset=ISO-8859-1 Date: Sat, 03 Dec 2011 10:00:59 +0000 Message-ID: <11076.1322906459@critter.freebsd.dk> X-Mailman-Approved-At: Sat, 03 Dec 2011 12:23:24 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: mmap implementation for cdev X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2011 10:01:00 -0000 In message , Filippo Sironi wri tes: >Ok, that's what I was suspecting. >Do you have any ideas on how to get the behavior I described in the = >previous mail? Why don't you just use mmap(2) ? I couldn't see anything you couldn't do with it. There's also support in pthread for thread specific storage, which should be your first choice. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.