open/close/ioctl api change?

Kostik Belousov kostikbel at
Mon Jun 25 12:40:33 UTC 2007

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 current.
> static int
> iscsi_open(struct cdev *dev, int flags, int otype, struct thread *td)
> {
> ...
> 	debug(3, "td->td_proc=%p", td->td_proc);
> 	debug(3, "td->td_proc->p_pid=%d pid=%d",
> 	   td->td_proc->p_pid, curproc->p_pid);
> ...
> the first debug prints out td->td_proc=0 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-current mailing list