> >I'm looking for a way to dump a large binary debug buffer=20
> >in a driver to a file. I've currently implemented this
> >with SYSCTL_ADD_OPAQUE() and it works fine but running the
> >"sysctl -a" command causes this buffer to be dumped which
> >is something of a pain. Is there a better way to do this?

> Much better idea: memory map it, that way your driver does
> not even discover that userland peeks over its shoulder.

I found the CTLFLAG_SKIP attribute which hides the sysctl and
makes things a lot better. How do I "memory map" the buffer?
Can you give me a function name or point to an example where
this is done so I can look into it further?


freebsd-current@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"