[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Layered device driver question
- To: tech_(_at_)_openbsd_(_dot_)_org, tech-kern_(_at_)_netbsd_(_dot_)_org
- Subject: Layered device driver question
- From: Constantine Sapuntzakis <csapuntz_(_at_)_stanford_(_dot_)_edu>
- Date: Wed, 22 Sep 1999 11:48:16 -0700 (PDT)
I've got a device driver that would like to pass an ioctl request
to its parent. What is the best way of doing this?
A couple observations:
I will use the term "low-level device" to refer to the object
described by struct device *.
The low-level device tree is largely independent from the bdevsw and
Not every low-level device actually implements an
open/read/write/ioctl interface and thus not every low-level device
needs a bdevsw/cdevsw entry.
Given a struct device * to a low-level device with an
open/read/write/ioctl interface, there seems to be no easy way to get at the
function pointers to open, read, etc. Nor is there any easy way to get
the major device number. Is this because a single low-level device
can implement multiple block or character devices?
Thanks for any help,
Visit your host, monkey.org