Re: variable args in kernel module?

2009-02-21 Thread Gerry Weaver
Hello All, Solved. I found machine/stdarg.h. Thanks, Gerry On Feb 21, 2009, at 6:34 PM, Gerry Weaver wrote: Hello All, How does one make use of variable arguments in a kernel module? It seems doable ala printf etc. I want to front end sprintf to calculate buffer size. I've

variable args in kernel module?

2009-02-21 Thread Gerry Weaver
Hello All, How does one make use of variable arguments in a kernel module? It seems doable ala printf etc. I want to front end sprintf to calculate buffer size. I've been looking through the source tree, but no luck as of yet. Thanks, Gerry

Re: How to access kernel memory from user space

2009-01-15 Thread Gerry Weaver
_ From: Alexej Sokolov [mailto:bsd.qu...@googlemail.com] To: Gerry Weaver [mailto:ger...@compvia.com] Cc: freebsd-hackers@freebsd.org Sent: Thu, 15 Jan 2009 12:31:00 -0600 Subject: Re: How to access kernel memory from user space 2008/12/23 Gerry Weaver Hello All, I am working on

Re: How to access kernel memory from user space

2008-12-24 Thread Gerry Weaver
_ From: Peter Jeremy [mailto:peterjer...@optushome.com.au] To: Gerry Weaver [mailto:ger...@compvia.com] Cc: freebsd-hackers@freebsd.org Sent: Wed, 24 Dec 2008 02:44:45 -0600 Subject: Re: How to access kernel memory from user space On 2008-Dec-22 18:05:34 -0600, Gerry Weaver wrote: >I

How to access kernel memory from user space

2008-12-22 Thread Gerry Weaver
Hello All, I am working on a driver that collects various network statistics via pfil. I have a simple array of structures that I use to store the statistics. I also have a user space process that needs to collect these statistics every second or so. A copy operation from kernel to user space w

Kernel module advice for bandwidth monitor

2008-06-22 Thread Gerry Weaver
Hello All, I am just starting to dig into FreeBSD kernel development and the pfil interface in particular. I am in need of some advice and possibly some pointers to relevant documentation. I want to develop a bandwidth control driver and the associated monitoring code. It seems that the bandwid