Date: Fri, 29 May 2015 09:38:42 +0000 (GMT) From: jenkins-admin@freebsd.org To: jenkins-admin@FreeBSD.org, freebsd-current@freebsd.org Subject: FreeBSD_HEAD-tests - Build #1067 - Still Unstable Message-ID: <1055108530.13.1432892323631.JavaMail.jenkins@jenkins-9.freebsd.org> In-Reply-To: <1405862442.11.1432860660795.JavaMail.jenkins@jenkins-9.freebsd.org> References: <1405862442.11.1432860660795.JavaMail.jenkins@jenkins-9.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
FreeBSD_HEAD-tests - Build #1067 - Still Unstable: Check console output at https://jenkins.freebsd.org/job/FreeBSD_HEAD-tests/1067/ to view the results. From owner-freebsd-current@FreeBSD.ORG Fri May 29 12:24:16 2015 Return-Path: <owner-freebsd-current@FreeBSD.ORG> Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D7C0DDEA for <current@freebsd.org>; Fri, 29 May 2015 12:24:16 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EF201EFC for <current@freebsd.org>; Fri, 29 May 2015 12:24:16 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by labpy14 with SMTP id py14so42675792lab.0 for <current@freebsd.org>; Fri, 29 May 2015 05:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=7YWgKwvNQBtf8rM3Aa5Us/QD7PGjXzBpZCnNxzW2d5w=; b=ZIaK1tr7lu1wQOdNBufQf1Ginqv9SSHleFtcLyInF2Nn+HgqeqVsFhOodBT/6d7N20 FOREsSUEfQOD8w86NBAKgWaCxRvuEv1kkek769MYRFBAdVc24X1m9IRcw3H2/MPnoISm b9+INjhpfoDzMtZnr97sjjCQzeuYdMBz7poqgGkUPJFIXROy8E9G3S7JkzH86uJ9jlcR ubxvMPcje9YuEv3rYaz50D5Zflw/lKai1ru/2GY2Goe8fhx64y3izmfpJG6T4lZB7RFu Z6aAQUJ8MMDWywnqzVh1BBkVq+USt0VbV88tsEAsUHCc/aeAazLIMSXtevegmzejNES2 Cs7Q== MIME-Version: 1.0 X-Received: by 10.112.161.40 with SMTP id xp8mr7590008lbb.71.1432902254522; Fri, 29 May 2015 05:24:14 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.230.103 with HTTP; Fri, 29 May 2015 05:24:14 -0700 (PDT) Date: Fri, 29 May 2015 14:24:14 +0200 X-Google-Sender-Auth: g9aBUJGnMOntZ_NpNfy-_ZJAAJg Message-ID: <CA+hQ2+g45KCXBb9=fHXf86w_cjMncTk2GOiPsFggCf3mUBvYbg@mail.gmail.com> Subject: per file descriptor device driver data ? From: Luigi Rizzo <rizzo@iet.unipi.it> To: FreeBSD Current <current@freebsd.org> Cc: Giuseppe Lettieri <g.lettieri@iet.unipi.it> Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current <freebsd-current.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/> List-Post: <mailto:freebsd-current@freebsd.org> List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 29 May 2015 12:24:16 -0000 Hi, in the kernel module for netmap we need to store some private data associated to each open netmap file descriptor. Our current design uses devfs_set_cdevpriv() during the open() handler, but for some reason a subsequent devfs_get_cdevpriv(p) returns *p = NULL in additional threads created by the process that did the open(). The manpage devfs_set_cdevpriv() does not mention threads, and so i am a bit puzzled why the cdevpriv is only good for the original thread. In the linux version 'struct file' has a "private_data" field that we use for that purpose, and remains valid on all threads. i wonder if there is something similar we can use in FreeBSD. cheers luigi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1055108530.13.1432892323631.JavaMail.jenkins>