Date: Fri, 29 May 2015 14:48:55 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Luigi Rizzo <rizzo@iet.unipi.it>, FreeBSD Current <current@freebsd.org> Cc: Giuseppe Lettieri <g.lettieri@iet.unipi.it> Subject: Re: per file descriptor device driver data ? Message-ID: <55686037.3080502@selasky.org> In-Reply-To: <CA%2BhQ2%2Bg45KCXBb9=fHXf86w_cjMncTk2GOiPsFggCf3mUBvYbg@mail.gmail.com> References: <CA%2BhQ2%2Bg45KCXBb9=fHXf86w_cjMncTk2GOiPsFggCf3mUBvYbg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 05/29/15 14:24, Luigi Rizzo wrote: > 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(). Hi, Are you sure it is the same file handle passed around, that the FD's were not cloned? The devfs_set_cdevpriv() is per "struct file" in the kernel from my knowledge. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55686037.3080502>