How to write driver with load time parameter support?

2004-12-07 Thread cm c
Hi, I've done most of my driver, but I need some load time parameters to be passed to this driver. Under Linux MODULE_PARM() can do this job, how can I do this under FBSD? thanks. CcM - Do You Yahoo!? 注册世界一流品质的雅虎免费电邮 ___

Re: How to write driver with load time parameter support?

2004-12-08 Thread cm c
ewbie. Dan Nelson <[EMAIL PROTECTED]> wrote: In the last episode (Dec 08), cm c said: > I've done most of my driver, but I need some load time parameters > to be passed to this driver. Under Linux MODULE_PARM() can do > this job, how can I do this under FBSD? I think kern

Re: Anyone running FreeBSD on a HP DL140 server?

2004-12-08 Thread cm c
DL140 does have a dual port NIC! I'm running 5.1 on it. NIC works OK. Does your DL140 have BMC? Paul Hamilton <[EMAIL PROTECTED]> wrote: Hi, I would like to run FreeBSD on a cheep HP server, and the DL140 looks great from a price point of view. Has anyone tried installing FreeBSD 4.10 or 5.3 on

Re: How to write driver with load time parameter support?

2004-12-08 Thread cm c
Thank you very much! It does work! CcM Dan Nelson <[EMAIL PROTECTED]> wrote: In the last episode (Dec 09), cm c said: > I'm still not very clear the way to do this. Does this method do set > the parameters at load time or after load ? Cause Linux can > insmod abc.o param=12

Re: How to use module reference in FBSD?

2004-12-23 Thread cm c
Kernel seems do not do it automatically. - Do You Yahoo!? 注册世界一流品质的雅虎免费电邮 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAI

How to use module reference in FBSD?

2004-12-23 Thread cm c
Under Linux I use MOD_INC_USE_COUNT. How does FreeBSD do this job? thanks. CcM - Do You Yahoo!? 注册世界一流品质的雅虎免费电邮 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions

Why can't I do "mknod /dev/cdev c 32 0"

2004-12-01 Thread cm c
I'm a newbie to freebsd. I'm trying to port a simple driver to freebsd, but something stopped me. I tried to use the /usr/share/examples to have a test, but mknod failed : mknod /dev/cdev c 32 0 even the make_dev call will cause system rebooting! I don't know why. Who can help me? thanks.

Re: Why can't I do "mknod /dev/cdev c 32 0"

2004-12-01 Thread cm c
processes need do 'open("/dev/cdev") before do other things, can /dev/cdev be created automatically? I don't think so. Brian Bobowski <[EMAIL PROTECTED]> wrote: cm c wrote: >I'm a newbie to freebsd. I'm trying to port a simple driver to freebsd, but