Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2001 13:51:26 -0800 (PST)
From:      Luigi Rizzo <rizzo@aciri.org>
To:        imp@harmony.village.org (Warner Losh)
Cc:        daverufino@btinternet.com, hackers@FreeBSD.ORG
Subject:   Re: character device driver
Message-ID:  <200102132151.f1DLpVZ38897@iguana.aciri.org>
In-Reply-To: <200102132124.f1DLOTW41431@harmony.village.org> from Warner Losh at "Feb 13, 2001  2:24:29 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> In message <20010213193150.A882@btinternet.com> David Rufino writes:
> : I'm writing a character device driver in which each minor device can be
> : opened more than once.  When a device is opened is there a way to associate
> : some private data for each opened instance ? Thanks.
> 
> No.  You only get one close call and in the kernel all instances of a
> minor device are treated identically.

this is not true anymore, there is some special flag you can
specify in cdevsw or so which passes all close calls to the driver.

	cheers
	luigi
----------------------------------+-----------------------------------------
 Luigi RIZZO, luigi@iet.unipi.it  . ACIRI/ICSI (on leave from Univ. di Pisa)
 http://www.iet.unipi.it/~luigi/  . 1947 Center St, Berkeley CA 94704
 Phone: (510) 666 2927
----------------------------------+-----------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102132151.f1DLpVZ38897>