Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2007 15:40:17 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Danny Braniss <danny@cs.huji.ac.il>
Cc:        freebsd-current@freebsd.org
Subject:   Re: open/close/ioctl api change?
Message-ID:  <20070625124017.GM2268@deviant.kiev.zoral.com.ua>
In-Reply-To: <E1I2n4U-000LwJ-Uo@cs1.cs.huji.ac.il>
References:  <E1I2n4U-000LwJ-Uo@cs1.cs.huji.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help

--+k4iwFkkzu//qJTk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 25, 2007 at 02:49:29PM +0300, Danny Braniss wrote:
> actually it's the struct thread *tp where my problems are,
> this code works fine under 6.2, and did work till some days ago under cur=
rent.
>=20
> static int
> iscsi_open(struct cdev *dev, int flags, int otype, struct thread *td)
> {
> ...
> 	debug(3, "td->td_proc=3D%p", td->td_proc);
> 	debug(3, "td->td_proc->p_pid=3D%d pid=3D%d",
> 	   td->td_proc->p_pid, curproc->p_pid);
> ...
>=20
> the first debug prints out td->td_proc=3D0 and the next one panics.

I think you shall start with posting full panic information, and ddb/kgdb
output for the trace.

There have been some change in KPI (I assume you example is about in-kernel
interfaces), but it shall not affect d_open() driver methods.

--+k4iwFkkzu//qJTk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGf7ewC3+MBN1Mb4gRApFZAJ9Bi66DLr83DdVGJ131wgyLkLW6wwCgsMUD
tefAOyjYwym6lCe26bWhgig=
=9+L0
-----END PGP SIGNATURE-----

--+k4iwFkkzu//qJTk--



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