Re: per file descriptor device driver data ?

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Fri, 29 May 2015 14:48:55 +0200
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
Received on Fri May 29 2015 - 10:48:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:57 UTC