| From | Subject | Date |
|---|---|---|
| Luciano Rodrigues Fu ... | How to define a major for a pseudo character device on N ...
Hi All,
I have a machine still stuck on NetBSD 1.6, I decided to try to port
the Tap driver to it. One question I have is where I define the major
for this new driver on 1.6.
On current I see conf/majors. Do I do this simply by adding a new
entry to the structure bellow:
#include "clockctl.h"
cdev_decl(clockctl);
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
cdev_ctty_init(1,ctty), /* 1: controlling terminal */
...
| Jan 3, 5:07 am 2011 |
| Brad du Plessis | Re: Potential re(4) / netbsd-4 / i386 problem?
A quick update.
My oversize frame problems are greatly reduced by
reverting rgephy.c as above, I have however still seen
1 instance of an oversize frame on a system that was at
the time experiencing very high disk I/O load. The
network device stopped working on this system until the
system was rebooted.
So as I see it there appear to be 2 problems which may or
may not be related:
1. Something in the netbsd-4 branch version of rgephy.c
causes the system to experience a high ...
| Jan 3, 7:24 am 2011 |
| Manuel Bouyer | Re: How to define a major for a pseudo character device ...
from what I remember this is the right way to do it, yes.
Don't forget to cdev_decl() it too.
You'll also have to hack MAKEDEV (or create the device nodes by calling
mknod directly).
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
| Jan 3, 7:31 am 2011 |
| previous day | today | next day |
|---|---|---|
| January 2, 2011 | January 3, 2011 | January 4, 2011 |
