KMEM Problem With OIDENTD

2005-06-25 Thread Dominique SA
Hey guys, I'm using FreeBSD 5.4, with oidentd 2.0.7 and PF. I can run oidentd fine but when i try to run it with the -m flag (masquerade flag) it tells me: Fatal: Can't open kmem device: No such file or directory Though: mem.ko module is loaded and: crw-r- 1 root kmem 244, 1 Jun 24 16:06 /dev/

Re: Accessing filesystem from a KLD

2005-06-25 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Suleiman Souhlal <[EMAIL PROTECTED]> writes: : You can use vn_open() to open the file, and then read it using vn_rdwr : (), and finally, vn_close() to close it. Look at src/sys/kern/ : link_elf_obj.c for an example. There's also a desire to provide an

Re: To C++ or not to C++

2005-06-25 Thread Maslan
>To quote the mailing list charter: > This is a forum for technical discussions related to FreeBSD. This is > the primary technical mailing list. It is for individuals actively > working on FreeBSD, to bring up problems or discuss alternative > solutions. Individuals interested in following the

Re: Accessing filesystem from a KLD

2005-06-25 Thread Daniel O'Connor
On Sat, 25 Jun 2005 19:33, Seb wrote: > How can I access the filesystem from a kernel module ? > In fact, I want my device driver to retreive a firmware image stored on the > filesystem (instead of putting the firmware data in a static array at > compile-time) for memory usage and legal concerns. B

Re: To C++ or not to C++

2005-06-25 Thread Erich Dollansky
Hi, Peter Jeremy wrote: On Sat, 2005-Jun-25 16:37:00 +0800, Erich Dollansky wrote: i don't think this is the suitable mailling list to ask this question aren't hackers the people who have the real-life experience? What will a C programmer tell? What will a Java programmer tell? Isn't it m

Re: To C++ or not to C++

2005-06-25 Thread Peter Jeremy
On Sat, 2005-Jun-25 16:37:00 +0800, Erich Dollansky wrote: >>i don't think this is the suitable mailling list to ask this question >> >aren't hackers the people who have the real-life experience? > >What will a C programmer tell? >What will a Java programmer tell? > >Isn't it much better to ask her

Re: Accessing filesystem from a KLD

2005-06-25 Thread Suleiman Souhlal
Hi, On Jun 25, 2005, at 6:03 AM, Seb wrote: Hello, How can I access the filesystem from a kernel module ? In fact, I want my device driver to retreive a firmware image stored on the filesystem (instead of putting the firmware data in a static array at compile-time) for memory usage and legal

Accessing filesystem from a KLD

2005-06-25 Thread Seb
Hello, How can I access the filesystem from a kernel module ? In fact, I want my device driver to retreive a firmware image stored on the filesystem (instead of putting the firmware data in a static array at compile-time) for memory usage and legal concerns. Blocking calls are OK. I have searched

Re: To C++ or not to C++

2005-06-25 Thread Erich Dollansky
Hi, Maslan wrote: i don't think this is the suitable mailling list to ask this question aren't hackers the people who have the real-life experience? What will a C programmer tell? What will a Java programmer tell? Isn't it much better to ask here? Erich On 6/24/05, Seán C. Farley <[EMAIL