Re: Library (ab)use in kernel land

2004-08-29 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Paolo Pisati [EMAIL PROTECTED] writes: : As a general rule of thumb, : which are the safe libraries we can link against : while developing a kernel module? None. : I mean, can i use libc functions? All of them? No. You can't. : And what about the

Serial consoles and remote GDB

2004-08-29 Thread Rob Deker
Hi folks, New to the list, so please bear with me if this is a question that's been answered someplace before. I've been searching and can't seem to find an answer. I'm doing some driver hacking w/ FreeBSD 5.2.1 and I've hit a spot where my life would be much easier if I had remote GDB for

Re: Serial consoles and remote GDB

2004-08-29 Thread Marcel Moolenaar
On Sun, Aug 29, 2004 at 06:13:12PM -0400, Rob Deker wrote: I'm doing some driver hacking w/ FreeBSD 5.2.1 and I've hit a spot where my life would be much easier if I had remote GDB for kernel debugging. I am however using a serial console on this box, and can't seem to get things working so

Re: Serial consoles and remote GDB

2004-08-29 Thread Stephan Uphoff
Hi, Try the patch from kern/65278 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/65278 Stephan On Sun, 2004-08-29 at 18:13, Rob Deker wrote: Hi folks, New to the list, so please bear with me if this is a question that's been answered someplace before. I've been searching and

Re: Serial consoles and remote GDB

2004-08-29 Thread Jiafu He
--- Rob Deker [EMAIL PROTECTED] wrote: Hi folks, New to the list, so please bear with me if this is a question that's been answered someplace before. I've been searching and can't seem to find an answer. I'm doing some driver hacking w/ FreeBSD 5.2.1 and I've hit a spot where my life

Finding MTU

2004-08-29 Thread Dennis George
Hi all, Can anybody tell me how to find the MTU (Maximum Transmitting Unit) in freeBSD programatically... Thanks in advance Dennis - Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone.

Re: Serial consoles and remote GDB

2004-08-29 Thread Rob Deker
On Sun, 2004-08-29 at 18:55, Stephan Uphoff wrote: Hi, Try the patch from kern/65278 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/65278 Thanks, Looks like that did some good (I have my console back now), but when i either boot -g or break into ddb and give it a gdb command, then try

Re: Finding MTU

2004-08-29 Thread Avleen Vig
On Sun, Aug 29, 2004 at 07:55:27PM -0700, Dennis George wrote: Hi all, Can anybody tell me how to find the MTU (Maximum Transmitting Unit) in freeBSD programatically... Define programatically? With syscalls, or in a way that is easily repeatable? If you just mean the latter, this will do

Re: Finding MTU

2004-08-29 Thread Skip Ford
Dennis George wrote: Can anybody tell me how to find the MTU (Maximum Transmitting Unit) in freeBSD programatically... The full source for ifconfig(8) is available. No need to ask anyone...

Re: Finding MTU

2004-08-29 Thread John-Mark Gurney
Dennis George wrote this message on Sun, Aug 29, 2004 at 19:55 -0700: Can anybody tell me how to find the MTU (Maximum Transmitting Unit) in freeBSD programatically... Well, as someone pointed out, you can find it in ifconfig.. but if you want to know the mtu to a specific system, try: netstat