Re: Library (ab)use in kernel land

2004-09-01 Thread Brian O';Shea
--- Mike Bristow <[EMAIL PROTECTED]> wrote: > > And manual pages in section 9 of the manual, eg: > > $ man 9 printf > > will give you the docs for the printf that you can call in kernelspace. Yes, however I can't find a man page that nicely outlines all of the kernel libc-like functions availab

Re: Library (ab)use in kernel land

2004-08-28 Thread Brian O';Shea
Hello Paolo, --- Paolo Pisati <[EMAIL PROTECTED]> wrote: > > As a general rule of thumb, > which are the safe libraries we can link against > while developing a kernel module? The standard C libraries that we have all come to know and love can only be used from user space. This is mainly beca

Re: bugs with disk space

2004-06-09 Thread Brian O';Shea
Hello Jose, --- Jose Hidalgo Herrera <[EMAIL PROTECTED]> wrote: > There is something wrong here: > > srv0:~# uname -r > 4.9-RELEASE-p4 > > srv0:~# df -hi / > FilesystemSize Used Avail Capacity iused ifree %iused Mounted on > /dev/ad0s1a 126M 125M -8.9M 108%1364 148908%

Re: third IDE

2004-05-20 Thread Brian O';Shea
Hello Mark, Use the MAKEDEV script in /dev . Unfortunately I don't have a 4.x system available to look up the arguments for you, and it has been removed from 5.x since devfs became mandatory. But the man page for MAKEDEV(8) on a 4.x system should help. Cheers, -brian --- Mark <[EMAIL PROTECTED

Re: FreeBSD 1.1.5.1-R cvs repo archive?

2004-05-08 Thread Brian O';Shea
Hello Xin LI, According to the FreeBSD web site, you can use cvsup to download the source code for almost any version of FreeBSD that ever existed. Check this out: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html#CVSUP-CONFIG-VERS However, CVS branch tags only appear to be li

Re: problem with gdb

2004-04-26 Thread Brian O';Shea
--- GiZmen <[EMAIL PROTECTED]> wrote: > > On Sunday, 25 April 2004 at 20:42:07 +0200, GiZmen wrote: > > > Hello, > > > > > > I have problem with gdb. When i start gdb as a regular user or even user > > > i wheel group, i cant debug program that i want. I start gdb with my > program > > > and i set

Re: C code for parsing rc.conf?

2004-04-14 Thread Brian O';Shea
--- Brandon Erhart <[EMAIL PROTECTED]> wrote: > Not that I know of, but it should be a breeze to write a simple parsing > engine. > Just ignore all lines starting with a '#', and break at the '=' sign. The > first part would be your variable name, the last part your value for it. Don't forget to

Re: Diagnosing unrecognized hardware

2004-03-25 Thread Brian O';Shea
Hello Warner, --- "M. Warner Losh" <[EMAIL PROTECTED]> wrote: > > Basically, you add it to sys/dev/pccard/pccarddevs, run make -f > Makefile.pccarddevs in that directory, then add the line you talked > about in your other email to if_wi_pccard.c. The first part of this > is desirable reguardless

Re: Diagnosing unrecognized hardware

2004-03-25 Thread Brian O';Shea
Hello Warner, Sorry for being unclear. I didn't mean to say that those changes worked, I was asking if they were correct so far. Also, I asked where I should specify the product id, because I suspect that I need to add that to some other table (please see the end of my comments in my previous e-

Re: Diagnosing unrecognized hardware

2004-03-25 Thread Brian O';Shea
how it goes. Thanks for all your help. I'll let you know how it goes, and if it works, I'll post a diff (from -CURRENT). -brian --- "M. Warner Losh" <[EMAIL PROTECTED]> wrote: > In message: <[EMAIL PROTECTED]> > "Brian O'Shea&q

Re: Diagnosing unrecognized hardware

2004-03-22 Thread Brian O';Shea
Hello Warner, Thanks for your reply. --- "M. Warner Losh" <[EMAIL PROTECTED]> wrote: > In message: <[EMAIL PROTECTED]> > "Brian O'Shea" <[EMAIL PROTECTED]> writes: > : pccard0: (manufacturer=0x000b, product=0x7110) at function 0 &

Diagnosing unrecognized hardware

2004-03-21 Thread Brian O';Shea
Hello, I'm running FreeBSD 5.2.1-RELEASE on an HP OmniBook 4150 laptop. I have a D-Link DWL-650 802.11b wireless ethernet card that doesn't seem to be recognized. I have built a kernel with the wi and wlan drivers: devicewlan devicewi Relevant boot messages: cbb0: at device 4

Re: 5.2.1-RC hangs occasionally when sound files are played using the pcm driver

2004-02-26 Thread Brian O';Shea
Sorry for the late response on this. I've been trying various combinations of kernel options in an attempt to narrow down the problem. --- Don Lewis <[EMAIL PROTECTED]> wrote: > On 23 Feb, Brian O'Shea wrote: > > --- Don Lewis <[EMAIL PROTECTED]> wrote: > >&

Re: 5.2.1-RC hangs occasionally when sound files are played using the pcm driver

2004-02-23 Thread Brian O';Shea
--- Brian O'Shea <[EMAIL PROTECTED]> wrote: > --- Mathew Kanner <[EMAIL PROTECTED]> wrote: > > > > Hello Brian, > > Don Lewis commited changes to the 5.2- tree on 2/14. Could > > you update and try again, also please do run with witness and

Re: 5.2.1-RC hangs occasionally when sound files are played using the pcm driver

2004-02-23 Thread Brian O';Shea
--- Don Lewis <[EMAIL PROTECTED]> wrote: > > The cause of deadlocks is more likely to be caught by WITNESS. In this With WITNESS the hang still occurrs, and still no panic. It's hard to tell since the problem tends to happen at random times, but it seems like it happens more quickly with the ke

Re: 5.2.1-RC hangs occasionally when sound files are played using the pcm driver

2004-02-22 Thread Brian O';Shea
--- Mathew Kanner <[EMAIL PROTECTED]> wrote: > > Hello Brian, > Don Lewis commited changes to the 5.2- tree on 2/14. Could > you update and try again, also please do run with witness and > invariants, and if possible try to get a crashdump so we can see > what's happening. Sure. I'l

5.2.1-RC hangs occasionally when sound files are played using the pcm driver

2004-02-22 Thread Brian O';Shea
Hello Hackers, My system: $ uname -a FreeBSD apsara 5.2.1-RC FreeBSD 5.2.1-RC #0: Sat Feb 7 21:38:15 PST 2004 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/APSARA i386 $ dmesg | grep pcm pcm0: port 0xd400-0xd4ff irq 16 at device 14.0 on pci0 (full dmesg output attached) Occasionally my sy

Re: user malloc from kernel

2003-09-29 Thread Brian O';Shea
--- Peter Pentchev <[EMAIL PROTECTED]> wrote: > > Here you got sample kernel module which do this: > > > > http://garage.freebsd.pl/usmalloc.tgz > > http://garage.freebsd.pl/usmalloc.README > > E... but won't this interfere *badly* with userland programs > which attempt to allocate me

Re: 0xdeadc0de panic after plugging in USB CompactFlashreader/writer on 5.0-RELEASE

2003-06-06 Thread Brian O';Shea
Hi Poul-Henning, --- Poul-Henning Kamp <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Bernd Walter writes: > >On Wed, Jun 04, 2003 at 10:44:53PM -0700, Brian O'Shea wrote: > >> System panics after PQI Travel Flash (USB Compact Flash reader/writer m

Re: 0xdeadc0de panic after plugging in USB CompactFlashreader/writer on 5.0-RELEASE

2003-06-06 Thread Brian O';Shea
--- Bernd Walter <[EMAIL PROTECTED]> wrote: > > Considering that we may require quirks for usb-ata converters but see > the drives in scsi_da I agree. > In this case it's not critical - the quirks are not wrong for my > version, just not required. > Nevertheless: Does it panic without quirk or sim

Re: 0xdeadc0de panic after plugging in USB CompactFlashreader/writer on 5.0-RELEASE

2003-06-06 Thread Brian O';Shea
--- Poul-Henning Kamp <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Bernd Walter writes: > >On Wed, Jun 04, 2003 at 10:44:53PM -0700, Brian O'Shea wrote: > >> System panics after PQI Travel Flash (USB Compact Flash reader/writer mass

0xdeadc0de panic after plugging in USB CompactFlash reader/writeron 5.0-RELEASE

2003-06-05 Thread Brian O';Shea
System panics after PQI Travel Flash (USB Compact Flash reader/writer mass storage device) is plugged in. This is 5.0-RELEASE on i386. I built a debug kernel to get a better crash dump and reproduced the problem: makeoptions DEBUG=-g#Build kernel with gdb(1) debug symbols # Kernel debug

Re: ports and /var/db/pkg

2003-04-02 Thread Brian O';Shea
Danny, If you built your packages from ports, you could always reinstall them. You just have to check for /usr/ports///work/.install_done.* It's not perfect, but you could use it to generate a quick list of ports to selectively re-install. Good luck, -brian --- Kris Kennaway <[EMAIL PROTECTED]>

Re: reading files from win

2001-10-10 Thread brian o';shea
m > as far as i am aware. it uses a single large file to emulate (much > like loopback image) or a disk partition (same a multi-boot). VMware can use a physical disk or a large file as a virtual disk. -brian -- Brian O'Shea(408) 822-3249<[EMAIL PROTECTED]> 3.3.1

Re: reading files from win

2001-10-09 Thread brian o';shea
you could run VMware [1] on Windows with FreeBSD running in a virtual machine. It's kind of a round-about way to do it, but it would probably work. -brian 1. http://www.vmware.com/ -- Brian O'Shea(408) 822-3249<[EMAIL PROTECTED]> 3.3.163(Pen) "Stare not to

Re: Signal Handling

2001-08-14 Thread brian o';shea
evens' book explains. Only the signal mask is copied. The signal mask has nothing to do with the addresses of the signal handlers. Hope that helps, -brian -- Brian O'Shea "Stare not too deeply into the pen, <[EMAIL PROTECTED]> 3.3.163(PEN) lest the pen stare back int

Re: Signal Handling

2001-08-14 Thread brian o';shea
address of the handler function. It is the bit mask which determines which signals are blocked. > 3) Is my using of exec, in fact, the best way to > reload the program on the fly, from within itself? > What would be the best, robust, way to do this in the > future? I think that ex

Re: Tuning the 4.1-R kernel for networking

2001-08-08 Thread Brian O';Shea
put those into /boot/loader.conf So to clarify, if I just add these lines as-is to /boot/loader.conf, these sysctl variables will be set on the next boot? The current contents of loader.conf on this system is: # -- sysinstall generated deltas -- # userconfig_script_load="YES" Thanks,

Re: Tuning the 4.1-R kernel for networking

2001-08-08 Thread Brian O';Shea
-STABLE as I have had some bad experiences doing that. Possibly a monthly upgrade while closely monitoring the -stable mailing list for known problems would be feasible. -- Brian O'Shea <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Tuning the 4.1-R kernel for networking

2001-08-07 Thread Brian O';Shea
;t know how to analyze the crash dump to determine where the problem is. Any suggestions are welcome. Thanks, -brian -- Brian O'Shea <[EMAIL PROTECTED]> # # SHAOLIN -- Kernel based on the GENERIC configuration file for FreeBSD/i386 # machine i386 cpu I686_CPU ident

Re: Thread problem in xmms

2001-07-27 Thread Brian O';Shea
To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message -- Brian O'Shea <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: libpcap and pthreads

2001-07-19 Thread Brian O';Shea
even with select() scenarios. They > implement the Highlander principle - there can be only one (pcap). > Sad. > -- Brian O'Shea <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Making an existing VMware virtual disk "dangerously dedicated"

2001-07-12 Thread Brian O';Shea
VMware virtual disk? Also, what version of FreeBSD are you running? Thanks, -brian -- Brian O'Shea <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Making an existing VMware virtual disk "dangerously dedicated"

2001-07-12 Thread Brian O';Shea
talled in a virtual machine Disk type is VMware virtual disk (i.e. not a physical partition) -- Brian O'Shea <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: subscribe

2001-05-16 Thread Brian O';Shea
m reponce. > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > > with "unsubscribe freebsd-hackers" in the body of the message > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message > -- Brian O'Shea <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: gdb question

2001-01-03 Thread Brian O';Shea
the fork() call. I don't know if gdb has support for doing this automatically. I don't think it does, but you might be able to attach to it in another gdb session by having the child process sleep for a while shortly after the fork() call to give you enough time to look up the PID of t

Re: ssh - are you nuts?!?

2000-12-23 Thread Brian O';Shea
e you seriously. This is a shame considering that you might have important issues to raise. Good luck on your talk, -brian -- Brian O'Shea [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Log analysis program running under apache reboots server!

2000-11-13 Thread Brian O';Shea
On Mon, Nov 13, 2000 at 11:56:37AM -0700, Nicole H wrote: > > On 13-Nov-00 Brian O'Shea wrote: > > Nicole, > > > > Is it a panic, or does it just silently reboot? If it's a panic, > > what is the panic message, or any other message on the console when &g

Re: Log analysis program running under apache reboots server!

2000-11-13 Thread Brian O';Shea
:coredumpsize=infinity:\ > :maxproc-cur=64:\ > :openfiles-cur=64:\ > :priority=0:\ > :requirehome@:\ > :umask=022:\ > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message -- Brian O'Shea [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: "iowait" CPU state

2000-11-06 Thread Brian O';Shea
ps(1), systat(1), pstat(8), vmstat(8) What information are you looking for specifically? Have a look at systat(1). It presents the activity on your system nicely, breaking it down into several descriptive categories which are documented in the man page. Try this: $ systat -io Hope that h

Re: Routing issue with cable modem

2000-10-22 Thread Brian O';Shea
nce many of us (perhaps most of us) don't use mailers that can render HTML. Such messages are often ignored. Thanks for re-sending it as plain text. :) -brian -- Brian O'Shea [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: FreeBSD vs. Linux

2000-10-22 Thread Brian O';Shea
gt; Regards, > > phpStop.com http://www.phpstop.com/ > stop here. start everywhere. mailto:[EMAIL PROTECTED] > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message -- Brian O'Shea [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Memory leakage...

2000-08-10 Thread Brian O';Shea
freed malloc()'ed memory. If it is a memory leak, the only way to free the memory is to kill the process that is leaking it. > -- > Never trust an operating system you don't have sources for. ;-) Don't get too comfortable. <http://www.acm.org/classics/sep95/> ;) -

Re: How to generate a core dump explicily

2000-08-08 Thread Brian O';Shea
t () from /usr/lib/libc.so.3 #2 0x80484a8 in main (argc=1, argv=0xbfbfd6ec) at handler.c:17 #3 0x8048419 in _start () -brian -- Brian O'Shea [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Hardware suppported needed by reboot(2) for RB_POWEROFF

2000-08-08 Thread Brian O';Shea
at that support is, or how to > > use it. > > That's platform-dependant. On the x86, a conforming APM BIOS is required > (or a device driver with a suitable hook for some other control > interface). apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 Excellent

Hardware suppported needed by reboot(2) for RB_POWEROFF

2000-08-08 Thread Brian O';Shea
() system call to power off the machine when the RB_POWEROFF flag is set? The man page makes mention of hardware support, but doesn't specify what that support is, or how to use it. Thanks, -brian -- Brian O'Shea [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with &q

Re: Some proposals to FreeBSD kernel

2000-07-13 Thread Brian O';Shea
to their limit of child processes, each child of which will do the same, ad infinitum (well, until maxproc is reached and you can't create any more processes and your system is wedged again). The kern.maxprocperuid sysctl addresses this problem better. -brian -- Brian O'Shea [EMAIL

Re: Code Pal VMS

2000-07-07 Thread Brian O';Shea
aftrer this. > > > > On Fri, 7 Jul 2000, lgrajales wrote: > > > > |> > > |> What is a Code Pal for VMS? > > |> thnxs. > > |> > > [snip - sigs] > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscr

Re: IA-64 simulator

2000-06-13 Thread Brian O';Shea
On Tue, Jun 13, 2000 at 01:23:15PM -0700, Brian O'Shea scribbled: > > ... I will give them contact informatin for Mike Smith and > David Greenman per Mike's followup). ^^ Oops. I mean David O'Brien. -brian -- Brian O'Shea [EMAIL PROTECTED] To Uns

Re: IA-64 simulator

2000-06-13 Thread Brian O';Shea
and emulator? I've done a quick search for information about it and can't find any. I am posting this question to an internal HP newsgroup (responses to which, of course, I can not repost here, but I will give them contact informatin for Mike Smith and David Greenman per Mike's foll

Re: Generic config file parser?

2000-05-28 Thread Brian O';Shea
impose on it? Do you want to enforce unique identifiers? Globally unique or just unique within a section? Should this be configurable (with a config file?! ;) ? Why not just use xml? (the token xml suggestion, sorry) All of this is managable, it just seems like more trouble than it's worth.

Re: kernel panics at boot, how to specify dump device?

2000-05-11 Thread Brian O';Shea
>From the LINT kernel config file: config kernel root on wd0 dumps on wd0 Maybe you forgot the 's' in "dumps"? I have never tried this so I can't say for sure. Just noticed this in your post. -brian -- Brian O'Shea [EMAIL PROTECTED] To Unsubscribe: s

Re: GPS heads up

2000-05-03 Thread Brian O';Shea
nt. > > 2-3 mm is exact enough for this? Even with SA, much more accurate numbers could be obtained by averaging several measurements. I think that the speed at which the earth's plates move is slow enough to get a good average measurement (except during an earthquake, of course!

The wrong way to deal with SPAM (was "Re: Spammage: I Surf, YOU GET PAID!!!!!! Promise")

2000-05-03 Thread Brian O';Shea
ner/Sun, Fyodor Yarochkin/KALUG, Max Vision/whitehats.com > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message -- Brian O'Shea [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Multithreaded server performance

2000-04-24 Thread Brian O';Shea
On Mon, Apr 24, 2000 at 09:58:49PM -0500, Chris Costello wrote: > On Monday, April 24, 2000, Brian O'Shea wrote: > > Yea, I took a look at lib/libc_r/uthread/uthread_read.c too, but it > > didn't paint the whole picture for me. Specifically, I couldn't f

Re: Multithreaded server performance

2000-04-24 Thread Brian O';Shea
me. Yea, I took a look at lib/libc_r/uthread/uthread_read.c too, but it didn't paint the whole picture for me. Specifically, I couldn't find the definition for the _thread_sys_read() function. It looks like the polling magic to which Jason Evans referred occurs in some interesting code in uth

Re: Multithreaded server performance

2000-04-24 Thread Brian O';Shea
there. Call conversion works very well for sockets. Wow, a page reference to the same book that I am reading. Kind of embarrassing that the answer to my question was on the page after the one that I mentioned. Thanks, that's exactly what I was looking for. -brian > > Jason >

Re: Multithreaded server performance

2000-04-24 Thread Brian O';Shea
On Mon, Apr 24, 2000 at 06:13:53AM -0400, Daniel Eischen wrote: > On Mon, 24 Apr 2000, Brian O'Shea wrote: > > > > I was under the impression that, because user thread scheduling is done > > in user mode, a thread that goes to sleep calling a blocking read() > >

Re: Multithreaded server performance

2000-04-24 Thread Brian O';Shea
> rfork(), which can be made to behave like Linux's clone(). > > Jason Please correct me if I am wrong. Thanks, -brian -- Brian O'Shea [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message