From owner-freebsd-hackers Sun Jun 9 3:17:44 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by hub.freebsd.org (Postfix) with SMTP id A2BDE37B415 for ; Sun, 9 Jun 2002 03:17:31 -0700 (PDT) Received: (qmail 84907 invoked from network); 9 Jun 2002 10:16:58 -0000 Received: from unknown (HELO pipeline.ch) ([195.134.148.7]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 9 Jun 2002 10:16:58 -0000 Message-ID: <3D032AE7.8B8CB2A@pipeline.ch> Date: Sun, 09 Jun 2002 12:16:07 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Terry Lambert Cc: Andy Sparrow , Larry Rosenman , freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: MIB support for network devices in FreeBSD? References: <20020609035146.55A8F3E2D@CRWdog.demon.co.uk> <3D02E7F4.432854D0@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > > Andy Sparrow wrote: > > But these stats don't seem to be collected for at least some network card > > drivers, presumably because those drivers aren't collecting those stats, e.g. > > they don't #include , and thus don't allocate a mib structure or > > increment any counters in that structure. > > > > I can confirm that it definately doesn't work for the 'wi' and 'lo' drivers... > > > > However, it definately seems to work for the xl driver... > > Benchmark the driver. > > If it's fast, it doesn't collect the statistics. Come on, this is bullshit. whatever++ hardly makes any difference. There are other places where way more cycles are wasted for less. -- Andre > Just like "WITNESS": if your machine is fast, "WITNESS" is disabled. > > 8-). > > Bascially, most of these statistics are "manager fluff" (as opposed > to "seat cushion fluuf" or "pocket fluff"). > > What you want is statistics that are managed universally; see > "netstat -ibdt" for the usefult statistics kept per interface. > > -- Terry > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 5:23:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by hub.freebsd.org (Postfix) with ESMTP id 62C3437B40C; Sun, 9 Jun 2002 05:22:59 -0700 (PDT) Received: from pool0011.cvx22-bradley.dialup.earthlink.net ([209.179.198.11] helo=mindspring.com) by harrier.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17H1iM-0004tn-00; Sun, 09 Jun 2002 05:22:34 -0700 Message-ID: <3D034864.BC63469C@mindspring.com> Date: Sun, 09 Jun 2002 05:21:56 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Andre Oppermann Cc: Andy Sparrow , Larry Rosenman , freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: MIB support for network devices in FreeBSD? References: <20020609035146.55A8F3E2D@CRWdog.demon.co.uk> <3D02E7F4.432854D0@mindspring.com> <3D032AE7.8B8CB2A@pipeline.ch> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andre Oppermann wrote: > > Benchmark the driver. > > > > If it's fast, it doesn't collect the statistics. > > Come on, this is bullshit. whatever++ hardly makes any difference. > There are other places where way more cycles are wasted for less. You removed my "8-)" by truncating my statement, and seperating it out. However, if you're going to be insistant, my statement was really like foam rubber duct taped to an aluminum baseball bat: a core of truth wrapped in humor, so it didn't hurt as much. Without the atomic increment code that John Baldwin and Julian Elisher have asked to be adopted time and again, each place you increment has to lock, increment, then unlock the interface statistics structure. Similar locks occur on the global statistics, which are contended between all interfaces, rather than aggregated out of per interface statistics, with no locking whatsoever (like "ps", they are a snapshot of system state; the only accuracy needs to be in their incrementing, not in their instantaneous value). The upshot is serialization of routing and/or multicast on multiple interface systems. You end up having to implement increment locking in any case, if you insist on your snapshot, even for a single interface, have inter-element consistency for the aggregate of all values for a given interface (you must write lock so that writing respects the read lock, since writes are per elemenet, and reads are per aggregate). This is particularly true for "bad packet" counters, where the decision about what constitutes a bad packet is most often made by higher protocol layers, and thus is not intrinsically "per interface" -- worse, they run at NETISR in 4.x, and are expected to run in an interrupt thread, in 5.x. Getting rid of NETISR entirely (*not* replacing it with interrupt threads running the stack) would get rid of the contention, in that there would be implicit locking of the structure, were it per interface. You'd still need to aggregate it for global stats (e.g. the output of "netstat -s"), but, per above, that would not require locking, since it's a read-only operation, and is statistical in natures. For statistics, read locking implies write locking which implies locking on every update operation, even when the vast majority of times there is no possiblity of contention, because no one really cares about the stats values, for the most part. If you insist on exactitude, then you end up seperately serializing all statistics updates -- after all, statistics are gathered as the result of conditions which are rarely simultaneously handled in the code. Most of the stuff the original post wanted to monitor is not really defined for STD-0050 (RFC-1643), RFC-2665 or RFC-3201. Further, interface statistics are peculiar to the abstract concept "interface", and should have nothing whatsoever to do with the driver. If there is explicit driver support required, then there is an intrinsic problem, in that the MIB elements in question are not uniform across drivers for real hardware reasons, not just because someone forgot to add them. Probably, it would be good to implement them at a higher "interface layer", on top of all drivers. Bill Paul and Archie Cobbs would bot be good people to involve in any discussion, but to me, it makes no sense to modify individual drivers to resolve the original issue, rather than writing common code once, in lieu of replicating (hopefully) identical code in a grundle of drivers. The real answer should have been "For what purpose are these statistics to be gathered?", particularly since a many of them are in fact not RFC mandated for Interfaces, and are really only valuable in particular application domains (and may have their own MIBs for those domains, e.g. Frame Relay, DSL, or 802.12, etc.. So if you want to be picky, let me change my answer: For what purpose are these statistics to be gathered? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 5:36:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail017.syd.optusnet.com.au (mail017.syd.optusnet.com.au [210.49.20.175]) by hub.freebsd.org (Postfix) with ESMTP id E490037B40D for ; Sun, 9 Jun 2002 05:36:11 -0700 (PDT) Received: from doorway.homeip.net (c16389.sunsh3.vic.optusnet.com.au [211.28.119.8]) by mail017.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g59CaAX11764 for ; Sun, 9 Jun 2002 22:36:10 +1000 Received: from optusnet.com.au (tbird.home.lan [192.168.1.5]) by doorway.homeip.net (8.11.6/8.11.0) with ESMTP id g59CaJc63688 for ; Sun, 9 Jun 2002 22:36:19 +1000 (EST) (envelope-from markhannon@optusnet.com.au) Message-ID: <3D034BC2.30201@optusnet.com.au> Date: Sun, 09 Jun 2002 22:36:18 +1000 From: Mark Hannon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc2) Gecko/20020515 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Subject: regular file size stored in dump header? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I am trying to add some flags to restore which would print the filesizes of the files included on the tape. This is pretty easy for directory entries (an entry exists in inotab) but I can't see any easy way for regular files. Do I have to count the blocks? Any other way? Rgds/mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 5:42:26 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail17.bigmailbox.com (mail17.bigmailbox.com [209.132.220.48]) by hub.freebsd.org (Postfix) with ESMTP id C006837B405 for ; Sun, 9 Jun 2002 05:42:06 -0700 (PDT) Received: (from www@localhost) by mail17.bigmailbox.com (8.11.6/8.10.0) id g59BgLV28766; Sun, 9 Jun 2002 04:42:21 -0700 Date: Sun, 9 Jun 2002 04:42:21 -0700 Message-Id: <200206091142.g59BgLV28766@mail17.bigmailbox.com> Content-Disposition: inline X-Mailer: MIME-tools 4.104 (Entity 4.116) Mime-Version: 1.0 X-Originating-Ip: [205.213.111.51] Content-Type: Multipart/Alternative; boundary="KckzeUQxa8vMB5PgM1dFuPIdL" From: "DIRECTOR PROMOTIONS WERKEN BIJ DE LOTTO" To: werkenbijdelotto100@37.com Subject: AWARD NOTIFICATION; FINAL NOTICE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format... --KckzeUQxa8vMB5PgM1dFuPIdL Content-Type: text/plain Content-Transfer-Encoding: 8bit WERKEN BIJ DE LOTTO, 41132, NL-1007 DB AMSTERDAM, THE NETHERLANDS. FROM: THE DESK OF THE DIRECTOR PROMOTIONS, INTERNATIONAL PROMOTIONS/PRIZE AWARD DEPARTMENT, REF: WBL/67-AO91657984 ATTENTION: AWARD NOTIFICATION; FINAL NOTICE We are pleased to inform you of the announcement today, 9TH JUNE 2002, of winners of the WERKEN BIJ DE LOTTO/ INTERNATIONAL PROGRAMS held on 19TH JANUARY 2002. Your company, attached to ticket number 013-2316-2002-477, with serial number A025-09 drew the lucky numbers 37-13-34-85-56-42, and consequently won in category C. You have therefore been approved for a lump sum pay out of US$1,500,000.00 in cash credited to file REF NO. REF: WBL/67-AO91657984. This is from total prize money of US$22,500,000.00 shared among the fifteen international winners in the category C. All participants were selected through a computer ballot system drawn from 30,000 names from Australia, New Zealand, America, Asia, Europe and North America as part our International Promotions Program, which is conducted annually. CONGRATULATIONS! Your fund is now deposited with a Finance and Security House insured in your name. Due to the mix up of some numbers and names, we ask that you keep this award strictly from public notice until your claim has been processed and your money remitted to your account. This is part of our security protocol to avoid double claiming or unscrupulous acts by participants of this program. We hope with a part of you prize, you will participate in our end of year high stakes US$1.3 billion International lotto. To begin your claim, please contact your claims officer immediately: JANSEN DAVIS FOREIGN SERVICE MANAGER, EUROLITE BV, TEL: 31 205241592 FAX: 31 205241597 EMAIL: eurolitebv55@yahoo.com For due processing and remittance of your prize money to a designated account of your choice. Remember, you must contact your claims officer not later than June 19, 2002 2002. After this date, all funds will be returned as unclaimed. NOTE: In order to avoid unnecessary delays and complications, please remember to quote your reference number in every one of your correspondences with your officer. Furthermore, should there be any change of your address, do inform your claims officer as soon as possible. Congratulations again from all our staff and thank you for being part of our promotions program. Sincerely, THE DIRECTOR PROMOTIONS, WERKEN BIJ DE LOTTO. www.werken-bij-delotto.net N.B. Any breach of confidentiality on the part of the winners will result to disqualification. Please do not reply this mail. ------------------------------------------------------------ http://Game.37.com/ <--- Free Games http://newJoke.com/ <--- J O K E S ! ! ! --KckzeUQxa8vMB5PgM1dFuPIdL Content-Type: text/html Content-Transfer-Encoding: 8bit
                       WERKEN BIJ DE LOTTO,
                       41132, NL-1007 DB AMSTERDAM,
                       THE NETHERLANDS.


FROM: THE DESK OF THE DIRECTOR PROMOTIONS,



INTERNATIONAL PROMOTIONS/PRIZE AWARD DEPARTMENT,
REF: WBL/67-AO91657984

ATTENTION: 

     AWARD NOTIFICATION; FINAL NOTICE

We are pleased to inform you of the announcement today, 9TH JUNE 2002, of 
winners of the WERKEN BIJ DE LOTTO/ INTERNATIONAL PROGRAMS held on 19TH JANUARY 
2002.

Your company, attached to ticket number 013-2316-2002-477, with serial number 
A025-09 drew the lucky numbers 37-13-34-85-56-42, and consequently won in 
category C.

You have therefore been approved for a lump sum pay out of US$1,500,000.00 in 
cash credited to file REF NO. REF: WBL/67-AO91657984. This is from total prize 
money of US$22,500,000.00 shared among the fifteen international winners in the 
category C. All participants were selected through a computer ballot system 
drawn from 30,000 names from Australia, New Zealand, America, Asia, Europe and 
North America as part our
International Promotions Program, which is conducted annually.

CONGRATULATIONS!

Your fund is now deposited with a Finance and Security House insured in your 
name. Due to the mix up of some numbers and names, we ask that you keep this 
award strictly from public notice until your claim has been processed and your 
money remitted to your account. This is part of our security protocol to avoid 
double claiming or unscrupulous acts by participants of this program.

We hope with a part of you prize, you will participate in our end of year high 
stakes US$1.3 billion International lotto.

To begin your claim, please contact your claims officer immediately:

JANSEN DAVIS
FOREIGN SERVICE MANAGER,
EUROLITE BV,
TEL: 31 205241592     FAX: 31 205241597
EMAIL: eurolitebv55@yahoo.com

For due processing and remittance of your prize money to a designated account of 
your choice. Remember, you must contact your claims officer not later than  June 
19, 2002 2002. After this date, all funds will be returned as unclaimed.

NOTE: In order to avoid unnecessary delays and complications, please remember to 
quote your reference number in every one of your correspondences with your 
officer. Furthermore, should there be any change of your address, do inform your 
claims officer as soon as possible.

Congratulations again from all our staff and thank you for being part of our 
promotions program.


Sincerely,

THE DIRECTOR PROMOTIONS,
WERKEN BIJ DE LOTTO.
www.werken-bij-delotto.net

N.B. Any breach of confidentiality on the part of the winners will result to 
disqualification. Please do not reply this mail.








------------------------------------------------------------
http://Game.37.com/  <--- Free Games
http://newJoke.com/   <---  J O K E S  ! ! !
--KckzeUQxa8vMB5PgM1dFuPIdL-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 6:59:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id EDA6137B408 for ; Sun, 9 Jun 2002 06:59:49 -0700 (PDT) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id E44AEA804; Sun, 9 Jun 2002 23:59:47 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id E094A542D; Sun, 9 Jun 2002 23:59:47 +1000 (EST) Date: Sun, 9 Jun 2002 23:59:47 +1000 (EST) From: Andrew To: tyler spivey Cc: freebsd-hackers@freebsd.org Subject: Re: a hopefully simple question In-Reply-To: <20020609015448.QPMZ15017.priv-edtnes10-hme0.telusplanet.net@a7a42593> Message-ID: <20020609235837.B94582-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 8 Jun 2002, tyler spivey wrote: > would someone please write a simple program > to do something like: > beep 200 300 > which would make a 200 hz tone for 300 ms? Try ftp://ftp.ugh.net.au/pub/unix/beep/beep-1.0.tar.gz > or at least tell me where to look for the information i need? speaker(4). Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 9:30:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailbox.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by hub.freebsd.org (Postfix) with ESMTP id 108B437B406 for ; Sun, 9 Jun 2002 09:30:45 -0700 (PDT) Received: from adslle.cc.univie.ac.at (adslle.cc.univie.ac.at [131.130.102.11]) by mailbox.univie.ac.at (8.12.2/8.12.2) with ESMTP id g59GUcDR027590 for ; Sun, 9 Jun 2002 18:30:41 +0200 Date: Sun, 9 Jun 2002 18:30:38 +0200 (CEST) From: Lukas Ertl X-X-Sender: le@leelou.in.tern To: freebsd-hackers@FreeBSD.ORG Subject: Re: Automounting samba shares / pam_mount In-Reply-To: <20020608005839.Y297-100000@leelou.in.tern> Message-ID: <20020609182142.M71977-100000@leelou.in.tern> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 8 Jun 2002, I wrote: > I'm currently trying to find out how to automount homedirs via samba when > users log in (via ssh, ftp, telnet,...), and I've found pam_mount, a PAM > module which seems to do the trick under Linux. I've also found that this > module was rejected as a port about one year ago because the code was "to= o > messy", whatever that means :-) [ ... ] > Or would you rather say that I should forget pam_mount and look for some > other way to automount my samba shares (maybe even write a PAM from > scratch for this purpose)? Hi, since pam_mount really was too messy I started writing my own PAM. It's more or less the necessary parts from mount_smbfs and pam_unix glued together. I'm not sure if I did everything right (smbfs is not very well documented, is it?), but after all it works. I'd be glad if someone would take a look at it and give some advice. The tarball can be found at . Beware: it's not even beta, documentation yet non existent, and you have to edit the source file and change host- and sharename. But I think it's a beginning. regards, le --=20 Lukas Ertl eMail: l.ertl@univie.ac.at UNIX-Systemadministrator Tel.: (+43 1) 4277-14073 Zentraler Informatikdienst (ZID) Fax.: (+43 1) 4277-9140 der Universit=E4t Wien http://mailbox.univie.ac.at/~le/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 11:42:31 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from omta01.mta.everyone.net (sitemail3.everyone.net [216.200.145.37]) by hub.freebsd.org (Postfix) with ESMTP id 93A5837B404 for ; Sun, 9 Jun 2002 11:42:16 -0700 (PDT) Received: from sitemail.everyone.net (dsnat [216.200.145.62]) by omta01.mta.everyone.net (Postfix) with ESMTP id 8A3201C38D2 for ; Sun, 9 Jun 2002 11:42:16 -0700 (PDT) Received: by sitemail.everyone.net (Postfix, from userid 99) id 70FFB2755; Sun, 9 Jun 2002 11:42:16 -0700 (PDT) Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Date: Sun, 9 Jun 2002 11:42:16 -0700 (PDT) From: Muhammad Faisal Rauf Danka To: freebsd-hackers@FreeBSD.ORG Subject: Re: a hopefully simple question Reply-To: mfrd@attitudex.com X-Originating-Ip: [202.5.134.230] Message-Id: <20020609184216.70FFB2755@sitemail.everyone.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Use following programs speaker spkrtest see their man pages for more info. Regards, --------- Muhammad Faisal Rauf Danka Chief Technology Officer Gem Internet Services (Pvt) Ltd. web: www.gem.net.pk Vice President Pakistan Computer Emergency Responce Team (PakCERT) web: www.pakcert.org Chief Security Analyst Applied Technology Research Center (ATRC) web: www.atrc.net.pk _____________________________________________________________ --------------------------- [ATTITUDEX.COM] http://www.attitudex.com/ --------------------------- _____________________________________________________________ Promote your group and strengthen ties to your members with email@yourgroup.org by Everyone.net http://www.everyone.net/?btn=tag To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 17:22:30 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from sharmas.dhs.org (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by hub.freebsd.org (Postfix) with ESMTP id AB36837B406 for ; Sun, 9 Jun 2002 17:22:26 -0700 (PDT) Received: by sharmas.dhs.org (Postfix, from userid 500) id E1C085E8A0; Sun, 9 Jun 2002 17:23:16 -0700 (PDT) Date: Sun, 9 Jun 2002 17:23:16 -0700 From: Arun Sharma To: freebsd-hackers@freebsd.org Subject: 0xdeadxxxx ? Message-ID: <20020610002316.GA6628@sharma-home.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I just got a kernel mode page fault. I'd like to find out more about > fault virtual address = 0xdeadc162 It looks like the address is meant to signal a particular class of error. Which one ? -Arun Background fsck: Fatal trap 12: page fault while in kernel mode cpuid = 0; lapic.id = 00000000 fault virtual address = 0xdeadc162 fault code = supervisor read, page not present instruction pointer = 0x8:0xc0277ebe stack pointer = 0x10:0xcaee688c frame pointer = 0x10:0xcaee68b0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 343 (cron) kernel: type 12 trap, code=0 Stopped at ufs_strategy+0xbc: calll *0(%edx,%eax,4) db> trace ufs_strategy(caee68e4,caee6900,c01e7a1a,caee68e4,0) at ufs_strategy+0xbc ufs_vnoperate(caee68e4) at ufs_vnoperate+0x13 breadn(cacdbb00,0,0,400,0) at breadn+0xc4 bread(cacdbb00,0,0,400,0) at bread+0x20 ffs_blkatoff(cacdbb00,0,0,0,caee69c8) at ffs_blkatoff+0x88 ufs_lookup(caee6af0,caee6b2c,c01ebe61,caee6af0,caaca274) at ufs_lookup+0x31f ufs_vnoperate(caee6af0) at ufs_vnoperate+0x13 vfs_cache_lookup(caee6b94,caee6bc0,c01efc94,caee6b94,caeb841c) at vfs_cache_loo9 ufs_vnoperate(caee6b94) at ufs_vnoperate+0x13 lookup(caee6c30,caeb841c,caee6bec,c01ce890,c0364178) at lookup+0x2b2 namei(caee6c30) at namei+0x1df lstat(caeb841c,caee6d14,2,2,292) at lstat+0x4a syscall(2f,2f,2f,0,0) at syscall+0x1db syscall_with_err_pushed() at syscall_with_err_pushed+0x1b --- syscall (190, FreeBSD ELF, lstat), eip = 0x280b2f33, esp = 0xbfbff1ec, ebp - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 17:39:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id CC21D37B40A for ; Sun, 9 Jun 2002 17:39:18 -0700 (PDT) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.3/8.12.3) with ESMTP id g5A0dICV004784; Sun, 9 Jun 2002 17:39:18 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.3/8.12.3/Submit) id g5A0dIRr004783; Sun, 9 Jun 2002 17:39:18 -0700 (PDT) (envelope-from dillon) Date: Sun, 9 Jun 2002 17:39:18 -0700 (PDT) From: Matthew Dillon Message-Id: <200206100039.g5A0dIRr004783@apollo.backplane.com> To: Arun Sharma Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 0xdeadxxxx ? References: <20020610002316.GA6628@sharma-home.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG For debugging purposes kernel memory which has been freed is filled with the pattern 0xdeadc0de (hex). So if you get a VM fault on something similar then something in the system has tried to reference a structure that is sitting in memory which has been freed. A no-no to be sure :-). 0xdeadc162 - 0xdeadc0de would be the structural offset relative to the pointer. The pointer itself is probably sitting at 0xdeadc0de. -Matt Matthew Dillon :I just got a kernel mode page fault. I'd like to find out more :about : :> fault virtual address = 0xdeadc162 : :It looks like the address is meant to signal a particular class of :error. Which one ? : : -Arun : :Background fsck: : :Fatal trap 12: page fault while in kernel mode :cpuid = 0; lapic.id = 00000000 :fault virtual address = 0xdeadc162 :fault code = supervisor read, page not present :instruction pointer = 0x8:0xc0277ebe :stack pointer = 0x10:0xcaee688c :frame pointer = 0x10:0xcaee68b0 :code segment = base 0x0, limit 0xfffff, type 0x1b : = DPL 0, pres 1, def32 1, gran 1 :processor eflags = interrupt enabled, resume, IOPL = 0 :current process = 343 (cron) :kernel: type 12 trap, code=0 :Stopped at ufs_strategy+0xbc: calll *0(%edx,%eax,4) :db> trace :ufs_strategy(caee68e4,caee6900,c01e7a1a,caee68e4,0) at ufs_strategy+0xbc :ufs_vnoperate(caee68e4) at ufs_vnoperate+0x13 :breadn(cacdbb00,0,0,400,0) at breadn+0xc4 :bread(cacdbb00,0,0,400,0) at bread+0x20 :ffs_blkatoff(cacdbb00,0,0,0,caee69c8) at ffs_blkatoff+0x88 :ufs_lookup(caee6af0,caee6b2c,c01ebe61,caee6af0,caaca274) at :ufs_lookup+0x31f :ufs_vnoperate(caee6af0) at ufs_vnoperate+0x13 :vfs_cache_lookup(caee6b94,caee6bc0,c01efc94,caee6b94,caeb841c) at :vfs_cache_loo9 :ufs_vnoperate(caee6b94) at ufs_vnoperate+0x13 :lookup(caee6c30,caeb841c,caee6bec,c01ce890,c0364178) at lookup+0x2b2 :namei(caee6c30) at namei+0x1df :lstat(caeb841c,caee6d14,2,2,292) at lstat+0x4a :syscall(2f,2f,2f,0,0) at syscall+0x1db :syscall_with_err_pushed() at syscall_with_err_pushed+0x1b :--- syscall (190, FreeBSD ELF, lstat), eip = 0x280b2f33, esp = 0xbfbff1ec, ebp - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 17:44:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from priv-edtnes27.telusplanet.net (defout.telus.net [199.185.220.240]) by hub.freebsd.org (Postfix) with ESMTP id F1F0937B401 for ; Sun, 9 Jun 2002 17:44:26 -0700 (PDT) Received: from a7a42593 ([64.180.243.39]) by priv-edtnes27.telusplanet.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20020610004426.KJAK22164.priv-edtnes27.telusplanet.net@a7a42593> for ; Sun, 9 Jun 2002 18:44:26 -0600 To: freebsd-hackers@freebsd.org From: tyler spivey Reply-To: tyler spivey Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Subject: signals and applications Message-Id: <20020610004426.KJAK22164.priv-edtnes27.telusplanet.net@a7a42593> Date: Sun, 9 Jun 2002 18:44:26 -0600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ok - I hope I can get an answer: how come (under linux) i can use my favourite web browser and hit ^c (interrupt) and it will interrupt any network application, but under FreeBSD there are some operations that can't be interupted and just wait there? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 17:52: 2 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 0296237B41A for ; Sun, 9 Jun 2002 17:51:55 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id D0A6BAE2AE; Sun, 9 Jun 2002 17:51:54 -0700 (PDT) Date: Sun, 9 Jun 2002 17:51:54 -0700 From: Alfred Perlstein To: tyler spivey Cc: freebsd-hackers@freebsd.org Subject: Re: signals and applications Message-ID: <20020610005154.GE88163@elvis.mu.org> References: <20020610004426.KJAK22164.priv-edtnes27.telusplanet.net@a7a42593> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020610004426.KJAK22164.priv-edtnes27.telusplanet.net@a7a42593> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * tyler spivey [020609 17:44] wrote: > ok - I hope I can get an answer: > how come (under linux) > i can use my favourite web browser and hit ^c (interrupt) > and it will interrupt any network application, > but under FreeBSD there are some operations that can't be interupted and just wait there? *sigh* Would you be willing to field a problem report this vague? Which web browser? How are you inputting a ^C? etc.etc... Applications have the option to ignore ^C, they can also futz with the terminal settings to that ^C doesn't work properly. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 19: 2:56 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx01-a.netapp.com (mx01-a.netapp.com [198.95.226.53]) by hub.freebsd.org (Postfix) with ESMTP id 873C837B401 for ; Sun, 9 Jun 2002 19:02:51 -0700 (PDT) Received: from frejya.corp.netapp.com (frejya [10.10.20.91]) by mx01-a.netapp.com (8.12.3/8.12.3/NTAP-1.4) with ESMTP id g5A22oAg012022; Sun, 9 Jun 2002 19:02:50 -0700 (PDT) Received: from elwood-fe.eng (localhost [127.0.0.1]) by frejya.corp.netapp.com (8.12.2/8.12.2/NTAP-1.4) with ESMTP id g5A22nbw009805; Sun, 9 Jun 2002 19:02:50 -0700 (PDT) Received: from localhost (kmacy@localhost) by elwood-fe.eng (8.11.6+Sun/8.11.6) with ESMTP id g5A22mX20809; Sun, 9 Jun 2002 19:02:48 -0700 (PDT) Date: Sun, 9 Jun 2002 19:02:48 -0700 (PDT) From: Kip Macy To: Alfred Perlstein Cc: tyler spivey , freebsd-hackers@FreeBSD.ORG Subject: Re: signals and applications In-Reply-To: <20020610005154.GE88163@elvis.mu.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've seen instances of this with ping, I just assumed it was an artifact of signal delivery only occurring after returning from blocking operations. -Kip On Sun, 9 Jun 2002, Alfred Perlstein wrote: > * tyler spivey [020609 17:44] wrote: > > ok - I hope I can get an answer: > > how come (under linux) > > i can use my favourite web browser and hit ^c (interrupt) > > and it will interrupt any network application, > > but under FreeBSD there are some operations that can't be interupted and just wait there? > > *sigh* > > Would you be willing to field a problem report this vague? > > Which web browser? How are you inputting a ^C? etc.etc... > > Applications have the option to ignore ^C, they can also futz > with the terminal settings to that ^C doesn't work properly. > > -- > -Alfred Perlstein [alfred@freebsd.org] > 'Instead of asking why a piece of software is using "1970s technology," > start asking why software is ignoring 30 years of accumulated wisdom.' > Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 19:21:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from tomts13-srv.bellnexxia.net (tomts13.bellnexxia.net [209.226.175.34]) by hub.freebsd.org (Postfix) with ESMTP id 83D0337B412 for ; Sun, 9 Jun 2002 19:21:40 -0700 (PDT) Received: from xena.gsicomp.on.ca ([65.95.179.11]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20020610022137.WBDZ12468.tomts13-srv.bellnexxia.net@xena.gsicomp.on.ca> for ; Sun, 9 Jun 2002 22:21:37 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.3/8.11.3) with SMTP id g5A17nb75817 for ; Sun, 9 Jun 2002 21:07:49 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <00c801c21025$8d61dab0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: Subject: Questions about kernel/userspace backwards compatibilty between minor revisions Date: Sun, 9 Jun 2002 22:21:37 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I' m working on getting OpenAFS working 100% on FreeBSD, and while reviewing the first set of my patches with the OpenAFS maintainer, some questions about kernel/userspace backwards compatibility came about. More specifically, OpenAFS was first ported on FreeBSD 4.2, and as a result, all config files (autoconf and 3 static files) are configured to look for FreeBSD 4.2. The CVS maintainer's current idea is is to duplicate all of these config files and autconf logic for FreeBSD 4.[013456]. This will add a bunch of _identical_ files to the CVS repo and add a whole lot of unneccessary autoconf checks that IMHO, are unneeded. This begs the question, is a check for FreeBSD 4.x sufficient enough from a userland perspective? What about from a kernel perspective (for kernel modules)? From my observations (I compiled the userland on 4.[236] with no problems), I think that a check for 4.x should be sufficient for userland and kernel modules, but if any kernel hacking is involved (as is done in net/arla), finer-grained checking will be required. Can anyone confirm or deny this? -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 20:24:42 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by hub.freebsd.org (Postfix) with ESMTP id 2845337B400; Sun, 9 Jun 2002 20:24:25 -0700 (PDT) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 17HFn3-0003Au-00; Mon, 10 Jun 2002 10:24:21 +0700 Received: from uni.land3.nsu.ru ([193.124.213.230] helo=land3.nsu.ru) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 17HFn2-0003AR-00; Mon, 10 Jun 2002 10:24:20 +0700 Received: from localhost (lucky@localhost) by land3.nsu.ru (8.11.6/8.11.6) with ESMTP id g5A3OKI17998; Mon, 10 Jun 2002 10:24:20 +0700 (NOVST) (envelope-from lucky@land3.nsu.ru) Date: Mon, 10 Jun 2002 10:24:20 +0700 (NOVST) From: Alexey Privalov To: freebsd-hackers@freebsd.org Cc: freebsd-ipfw@freebsd.org Subject: natd & trans proxy Message-ID: <20020610101352.Y47747-100000@land3.nsu.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Envelope-To: freebsd-ipfw@freebsd.org, freebsd-hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi all. i`m running two natd`s on rl3 (external) and rl0 (internal). the first natd is running on 8668 (standart) port and is diverting private ip to ip on interface and have following configuration: interface rl3 unregistered_only yes use_sockets yes same_ports yes the second natd have a following configuration: port 8669 proxy_only proxy_rule port 80 server proxy_addr:8888 interface rl0 and is forwarding to squid. why when interface rl0 receive http packet then it divert ip to external. best regards, Alexey PS: ipfw rule: 40 divert 8669 tcp from to any 80 via rl0 50 divert 8668 ip from any to any via rl3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 20:34:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from sharmas.dhs.org (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by hub.freebsd.org (Postfix) with ESMTP id 0C2EF37B403 for ; Sun, 9 Jun 2002 20:34:23 -0700 (PDT) Received: by sharmas.dhs.org (Postfix, from userid 500) id 1BF865E003; Sun, 9 Jun 2002 20:35:21 -0700 (PDT) Date: Sun, 9 Jun 2002 20:35:20 -0700 From: Arun Sharma To: freebsd-hackers@freebsd.org Subject: Kernel hacking questions Message-ID: <20020610033520.GA7795@sharma-home.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 1. Can I use a SMP kernel and bring it up with just one CPU on a two CPU machine ? 2. How do I trace back funcname+offset to a particular line of C code ? I tried objdump -d and gcc -S, but it's not easy to read. I thought there was a way to get gcc to interleave the C code and the generated assembly. I have a suspicion that in kern_mutex.c:510, if (td1->td_priority < td->td_priority) there may be circumstances in which td1 could be pointing to memory that has been freed. I've got a bunch of panics which result in kernel mode page faults at 0xdeadxxxx. Thanks! -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 22:32:46 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id A419A37B404 for ; Sun, 9 Jun 2002 22:32:40 -0700 (PDT) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g5A5V8V7000451; Mon, 10 Jun 2002 07:31:13 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Arun Sharma Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 0xdeadxxxx ? In-Reply-To: Your message of "Sun, 09 Jun 2002 17:23:16 PDT." <20020610002316.GA6628@sharma-home.net> Date: Mon, 10 Jun 2002 07:31:08 +0200 Message-ID: <450.1023687068@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20020610002316.GA6628@sharma-home.net>, Arun Sharma writes: >I just got a kernel mode page fault. I'd like to find out more >about > >> fault virtual address = 0xdeadc162 0xdeadcode is used to fill freed memory. > >It looks like the address is meant to signal a particular class of >error. Which one ? > > -Arun > >Background fsck: > >Fatal trap 12: page fault while in kernel mode >cpuid = 0; lapic.id = 00000000 >fault virtual address = 0xdeadc162 >fault code = supervisor read, page not present >instruction pointer = 0x8:0xc0277ebe >stack pointer = 0x10:0xcaee688c >frame pointer = 0x10:0xcaee68b0 >code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 >processor eflags = interrupt enabled, resume, IOPL = 0 >current process = 343 (cron) >kernel: type 12 trap, code=0 >Stopped at ufs_strategy+0xbc: calll *0(%edx,%eax,4) >db> trace >ufs_strategy(caee68e4,caee6900,c01e7a1a,caee68e4,0) at ufs_strategy+0xbc >ufs_vnoperate(caee68e4) at ufs_vnoperate+0x13 >breadn(cacdbb00,0,0,400,0) at breadn+0xc4 >bread(cacdbb00,0,0,400,0) at bread+0x20 >ffs_blkatoff(cacdbb00,0,0,0,caee69c8) at ffs_blkatoff+0x88 >ufs_lookup(caee6af0,caee6b2c,c01ebe61,caee6af0,caaca274) at >ufs_lookup+0x31f >ufs_vnoperate(caee6af0) at ufs_vnoperate+0x13 >vfs_cache_lookup(caee6b94,caee6bc0,c01efc94,caee6b94,caeb841c) at >vfs_cache_loo9 >ufs_vnoperate(caee6b94) at ufs_vnoperate+0x13 >lookup(caee6c30,caeb841c,caee6bec,c01ce890,c0364178) at lookup+0x2b2 >namei(caee6c30) at namei+0x1df >lstat(caeb841c,caee6d14,2,2,292) at lstat+0x4a >syscall(2f,2f,2f,0,0) at syscall+0x1db >syscall_with_err_pushed() at syscall_with_err_pushed+0x1b >--- syscall (190, FreeBSD ELF, lstat), eip = 0x280b2f33, esp = 0xbfbff1ec, ebp - > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-hackers" in the body of the message > -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 22:38:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 4C20637B40A for ; Sun, 9 Jun 2002 22:38:46 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id 270FAAE2AB; Sun, 9 Jun 2002 22:38:46 -0700 (PDT) Date: Sun, 9 Jun 2002 22:38:46 -0700 From: Alfred Perlstein To: Matthew Emmerton Cc: freebsd-hackers@freebsd.org Subject: Re: Questions about kernel/userspace backwards compatibilty between minor revisions Message-ID: <20020610053846.GF88163@elvis.mu.org> References: <00c801c21025$8d61dab0$1200a8c0@gsicomp.on.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00c801c21025$8d61dab0$1200a8c0@gsicomp.on.ca> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Matthew Emmerton [020609 19:21] wrote: > I' m working on getting OpenAFS working 100% on FreeBSD, and while reviewing > the first set of my patches with the OpenAFS maintainer, some questions > about kernel/userspace backwards compatibility came about. > > More specifically, OpenAFS was first ported on FreeBSD 4.2, and as a result, > all config files (autoconf and 3 static files) are configured to look for > FreeBSD 4.2. The CVS maintainer's current idea is is to duplicate all of > these config files and autconf logic for FreeBSD 4.[013456]. This will add > a bunch of _identical_ files to the CVS repo and add a whole lot of > unneccessary autoconf checks that IMHO, are unneeded. > > This begs the question, is a check for FreeBSD 4.x sufficient enough from a > userland perspective? What about from a kernel perspective (for kernel > modules)? From my observations (I compiled the userland on 4.[236] with no > problems), I think that a check for 4.x should be sufficient for userland > and kernel modules, but if any kernel hacking is involved (as is done in > net/arla), finer-grained checking will be required. Can anyone confirm or > deny this? 4.x should be pretty compatible with respect to 4.2 to 4.3 to 4.4 and so on, if you come across any jitter then you can probably use __FreeBSD_version from sys/param.h. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 23:41:15 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 5177537B407 for ; Sun, 9 Jun 2002 23:40:50 -0700 (PDT) Received: from pool0081.cvx40-bradley.dialup.earthlink.net ([216.244.42.81] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17HIr7-0006Jk-00; Sun, 09 Jun 2002 23:40:46 -0700 Message-ID: <3D0449C9.27338938@mindspring.com> Date: Sun, 09 Jun 2002 23:40:09 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Arun Sharma Cc: freebsd-hackers@freebsd.org Subject: Re: 0xdeadxxxx ? References: <20020610002316.GA6628@sharma-home.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Arun Sharma wrote: > I just got a kernel mode page fault. I'd like to find out more > about > > > fault virtual address = 0xdeadc162 > > It looks like the address is meant to signal a particular class of > error. Which one ? 0xdeadc162 - 0xdeadc0de = 0x00000084 = 132 decimal Look for a short value that's getting set to 132. If you'd done a traceback on the fault and identified the code, then finding out what the short value involved was, to know whether that was a += 132 or an = 49506 or a -= 16029. My guess would be a reference counted object whose count was a short, overflowed, and then was subsequently increment 132 times... OR a long reference count whose references were all releases, but a pointer to the object itself was not properly NULL'ed out, and it the reference was increment 132 times. Knowing the size of the object would help identify it. So would enabling allocator debugging, and making a free of a freed object cause a panic, rather than just printing out a warning (the traceback on *that* panix would identify the erroneous free). You would probably benefit, as well, by making sure the ref counts themselves were not in the areas that got blown over by "0xdeadc0de" (the first 12 bytes) of any structure. Basically, this looks very much like a free error, where a free of a unfreed object ends up getting pointered to. Another thing to look for... lok for objects that would be aligned on a 132 byte boundary (probably, this is a pointer that's overwritten by "0xdeadc0de", and then referenced with a non-zero index for some object that's some power of two divisible into 132-sized. I had a similar error with the cred reference counts that I found when I was the first person to get FreeBSD to go over 32767 simultaneous network connections off a single listen socket (if you will remember). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jun 9 23:42:23 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id C31A337B40B for ; Sun, 9 Jun 2002 23:42:19 -0700 (PDT) Received: from pool0081.cvx40-bradley.dialup.earthlink.net ([216.244.42.81] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17HIsc-0007GK-00; Sun, 09 Jun 2002 23:42:18 -0700 Message-ID: <3D044A25.3FB00222@mindspring.com> Date: Sun, 09 Jun 2002 23:41:41 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: tyler spivey Cc: freebsd-hackers@freebsd.org Subject: Re: signals and applications References: <20020610004426.KJAK22164.priv-edtnes27.telusplanet.net@a7a42593> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG tyler spivey wrote: > ok - I hope I can get an answer: > how come (under linux) > i can use my favourite web browser and hit ^c (interrupt) > and it will interrupt any network application, > but under FreeBSD there are some operations that can't be interupted and just wait there? Your application is trapping SIGINT, and Linux is doing the wrong thing? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 0:21:56 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from eos.telenet-ops.be (eos.telenet-ops.be [195.130.132.40]) by hub.freebsd.org (Postfix) with ESMTP id 4555537B408 for ; Mon, 10 Jun 2002 00:21:54 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by eos.telenet-ops.be (Postfix) with SMTP id EBDB4203E8 for ; Mon, 10 Jun 2002 09:21:52 +0200 (CEST) Received: from fortuna.home.paeps.cx (D5768644.kabel.telenet.be [213.118.134.68]) by eos.telenet-ops.be (Postfix) with ESMTP id B26A6203D3 for ; Mon, 10 Jun 2002 09:21:52 +0200 (CEST) Received: from juno.home.paeps.cx (juno [10.0.0.2]) by fortuna.home.paeps.cx (Postfix) with ESMTP id 8E3A49B7 for ; Mon, 10 Jun 2002 09:21:52 +0200 (CEST) Received: by juno.home.paeps.cx (Postfix, from userid 1001) id 762A525; Mon, 10 Jun 2002 09:21:52 +0200 (CEST) Date: Mon, 10 Jun 2002 09:21:52 +0200 From: Philip Paeps To: hackers@freebsd.org Subject: Cardreaders and touchscreens? Message-ID: <20020610072152.GE39525@juno.paeps.cx> Mail-Followup-To: hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.3.99i X-Message-Flag: Get yourself a real mail client. Try Mutt: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi there - One of my clients would like me to hack together an application involving a cardreader and a touchscreen. How would I deal with these two rather 'odd' pieces of hardware. I didn't have any say in the purchasing of the touchscreen, but I suppose that shouldn't give me any trouble? It's just a keyboard/mouse combination in a strange shape, as I see it? The cardreader is another story. I'm free in choosing one which I can get to work. Does anyone have any experience with these things under FreeBSD? Any brands/types from which I *really* should stay away? Thanks for any info! - Philip -- Philip Paeps philip@paeps.cx http://www.paeps.cx/ +32 486 114 720 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 0:50:46 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mobile.webweaving.org (ppp-62-11-55-181.dialup.tiscali.it [62.11.55.181]) by hub.freebsd.org (Postfix) with ESMTP id 478FF37B409 for ; Mon, 10 Jun 2002 00:50:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mobile.webweaving.org (8.12.2/8.10.2) with ESMTP id g5A7oD2o005497; Mon, 10 Jun 2002 09:50:13 +0200 (CEST) X-Curiosity: Killed the Cat X-Huis-aan-Huis-deur-sticker: nee-nee X-Spam: no X-Passed: MX on Gandalf.WebWeaving.org Mon, 10 Jun 2002 09:50:13 +0200 (CEST) and masked X-No-Spam: Neither the receipients nor the senders email address(s) are to be used for Unsolicited (Commercial) Email without the explicit written consent of either party; as a per-message fee is incurred for inbound and outbound traffic to the originator. Date: Mon, 10 Jun 2002 09:50:12 +0200 (CEST) From: dirkx@covalent.net X-X-Sender: dirkx@mobile.webweaving.org To: philip@paeps.cx Cc: hackers@FreeBSD.ORG Subject: Re: Cardreaders and touchscreens? In-Reply-To: <20020610072152.GE39525@juno.paeps.cx> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > The cardreader is another story. I'm free in choosing one which I can get to > work. Does anyone have any experience with these things under FreeBSD? Any > brands/types from which I *really* should stay away? I've used a wide range of serial port ones; most seem OEM-ed IBMs or SEMA/Schulbergee. See http://www.franken.de/crypt/scez.html which I found usefull for the Schlumbergee crypto cards. Dw To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 1:36:59 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from alogis.com (firewall.solit-ag.de [212.184.102.1]) by hub.freebsd.org (Postfix) with ESMTP id B662437B40D; Mon, 10 Jun 2002 01:36:52 -0700 (PDT) Received: from alogis.com (kipp@clausthal.int1.b.intern [10.1.1.30]) by alogis.com (8.11.1/8.9.3) with ESMTP id g5A8aOl27735; Mon, 10 Jun 2002 10:36:24 +0200 (CEST) (envelope-from holger.kipp@alogis.com) Message-ID: <3D0460DB.7761F703@alogis.com> Date: Mon, 10 Jun 2002 10:18:35 +0200 From: Holger Kipp X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.13 i686) X-Accept-Language: en MIME-Version: 1.0 To: frank@exit.com Cc: stable@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Numerous hard hangs on TWO different ASUS P4T-E w/P4 1.6G References: <200206071632.g57GWlFU099531@realtime.exit.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Frank Mayhar wrote: > > I'm experiencing hangs as well. At first I thought it was the fxp0/sym > driver thing, but I've since changed hardware almost completely and the > hangs persis. I'm now strongly suspecting some kind of interrupt problem. > For the record, I've attached my dmesg output. This is a dual AMD MP 1900+ > (1.6 GHz) Tyan 2466N-4M system. 3Com xl0 ethernet, Adaptec 39160 and 3940 > SCSI, Creative Soundblaster Live! audio, Radeon 8500 128MB video (XFree86 > 4.2). 2GB DDR memory. Short notice regarding fxp0/sym driver problem: Gérard Roudier was very helpful here and sent me a patch against the sym-driver, intended to check for stalled irqs (and work around this issue if possible). In fact for these hangs to occur, I need both fxp0 and sym0 to share the same irq and a SMP system. As said his patch is checking for irq stalls. Without the patch, I'd only get "fxp0: device timeout", and both sym0 and fxp0 would hang (could be freed with "ifconfig fxp0 down; ifconfig fxp0 up", if ifconfig was already loaded into RAM at that time...) With his patch, I still get "fxp0: device timeout", but the sym driver would still be able to process outstanding irqs, and fxp0 also frees itself after a short time (a few seconds). Triggering via a simple "ping -f". My guess is that the problems are not necessarily fxp- or sym-related, but general irq handling problems. Due to code optimization, timing might be more critical, so a broader range of systems might be affected (stable had several postings with similar hangs with a broad range of different hardware). Regards, Holger -- Holger Kipp, Dipl.-Math., Systemadministrator | alogis AG Fon: +49 (0)30 / 43 65 8 - 114 | Berliner Strasse 26 Fax: +49 (0)30 / 43 65 8 - 214 | D-13507 Berlin Tegel email: holger.kipp@alogis.com | http://www.alogis.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 2:57:31 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from popcs.cs.tin.it (popcs.cs.tin.it [194.243.155.125]) by hub.freebsd.org (Postfix) with SMTP id 2C08237B408 for ; Mon, 10 Jun 2002 02:57:29 -0700 (PDT) Received: (qmail 17937 invoked from network); 10 Jun 2002 10:02:17 -0000 Received: from cruiser.cs.tin.it (HELO cs.tin.it) (212.216.178.193) by popcs.cs.tin.it with SMTP; 10 Jun 2002 10:02:17 -0000 Message-ID: <3D0477EE.9DAA3361@cs.tin.it> Date: Mon, 10 Jun 2002 11:57:02 +0200 From: Ferruccio Vitale X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: kernel thread Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, how can I destroy a kernel thread that I previously created? Regards, Ferruccio To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 3:45: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gate.nentec.de (gate2.nentec.de [194.25.215.66]) by hub.freebsd.org (Postfix) with ESMTP id 8553C37B404 for ; Mon, 10 Jun 2002 03:45:03 -0700 (PDT) Received: from nenny.nentec.de (root@nenny.nentec.de [153.92.64.1]) by gate.nentec.de (8.11.3/8.9.3) with ESMTP id g5AAj1A17777; Mon, 10 Jun 2002 12:45:01 +0200 Received: from nentec.de (andromeda.nentec.de [153.92.64.34]) by nenny.nentec.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id g5AAj0Z30126; Mon, 10 Jun 2002 12:45:00 +0200 Message-ID: <3D04832C.5070800@nentec.de> Date: Mon, 10 Jun 2002 12:45:00 +0200 From: Andy Sporner User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.8) Gecko/20020204 X-Accept-Language: de-at, de, en, en-us MIME-Version: 1.0 To: Ferruccio Vitale Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kernel thread References: <3D0477EE.9DAA3361@cs.tin.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ferruccio Vitale wrote: >Hi, > >how can I destroy a kernel thread that I previously created? >Regards, > >Ferruccio > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-hackers" in the body of the message > > man ktread_shutdown To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 4:56:46 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scan.ji-net.com (scan.ji-net.com [203.130.156.3]) by hub.freebsd.org (Postfix) with ESMTP id B2C9B37B406 for ; Mon, 10 Jun 2002 04:56:41 -0700 (PDT) Received: from net1.ji-net.com ([203.156.15.52]) by scan.ji-net.com (8.11.2/8.11.2) with SMTP id g5ABuIL28841 for ; Mon, 10 Jun 2002 18:56:22 +0700 Message-Id: <200206101156.g5ABuIL28841@scan.ji-net.com> Date: Mon, 10 Jun 2002 18:58:34 To: freebsd-hackers@FreeBSD.org From: goodhealthgoodjob@yahoo.com (foodforhealth) Subject: Çѹ¹Õé¤Ø³´ÙáÅÊØ¢ÀÒ¾áÅéÇËÃ×ÍÂѧ X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG á¹Ð¹Óâ»Ãá¡ÃÁ¤Çº¤ØÁ¹éÓ˹ѡ à¾ÔèÁ¹éÓ˹ѡ ÃÑ¡ÉÒÊØ¢ÀÒ¾ ¤Ø³ËÃ×ͤ¹·Õè¤Ø³ÃÑ¡¡ÓÅѧÁͧËÒÇÔ¸Õ´ÙáÅÊØ¢ÀÒ¾·Õèà»ç¹¸ÃÃÁªÒµÔÍÂÙèãªèäËÁ? ËÒ¡¤Ø³àº×èÍ˹èÒ¡Ѻ¤ÇÒÁ¾ÂÒÂÒÁ·ÕèäÁè»ÃÐʺ¤ÇÒÁÊÓàÃ稤ÃÑé§áÅéǤÃÑé§àÅèÒ ã¹¡ÒôÙáÅÊØ¢ÀÒ¾à¾×èÍÃÙ»ÃèÒ§·Õè´Õ àÃÒÁÕâ»Ãá¡ÃÁâÀª¹Ò¡ÒÃà¾×èÍÊØ¢ÀÒ¾ ·ÕèªèǤسä´é ÊÓËÃѺ¼Ùé·ÕèÁջѭËÒ ¹éÓ˹ѡà¡Ô¹ËÃ×ÍÍéǹ, ¼ÍÁà¡Ô¹ä», ÁջѭËÒÊØ¢ÀÒ¾ (¼ÍÁáËé§áç¹éÍÂ, ¾Ø§ËéÍÂÍ×´ÍÒ´, ¢Ò´¤ÇÒÁÁÑè¹ã¨, âäÀѶÒÁËÒ,ãºË¹éÒà»ç¹ÊÔÇ, ¼ÔǾÃóàËÕèÂÇÂè¹, ¤¹àÅ蹡ÕÌÒ, ¤Ø³»éÒÇÑ·ͧ, ¤Ø³¹éÍ§æ ·ÕèÍÂÒ¡ÊÇÂ)à»ç¹¼ÅÔµÀѳ±ì¨Ò¡¸ÃÃÁªÒµÔ 100 % äÁèãªèÂÒ äÁèµéͧʹÍÒËÒà äÁèÁռŢéÒ§à¤Õ§ äÁèµéͧÍÍ¡¡ÓÅѧ¡Ò ¿Ñ§´ÙäÁè¹èÒàª×èÍáµè¡çµéͧàª×èÍà¾ÃÒмèÒ¹ ÍÂ.·Ø¡»ÃÐà·È·Õèà¢éÒ仢ÒÂâ´Â੾ÒлÃÐà·Èä·ÂáÅÐÍàÁÃÔ¡Ò ãËéÊÒÃÍÒËÒäú¶éǹ »ÃѺÊÁ´ØŢͧÃèÒ§¡ÒÂÅ´ä¢ÁѹÊèǹà¡Ô¹ ÃѺÃͧ¼ÅÀÒÂã¹30Çѹ´éÇÂÃкº¤×¹à§Ô¹100%(á¾·Âì¼Ùé¤Ô´¤é¹ÍÒËÒÃÊٵùÕé¤×ͤ¹·Õè¤Ô´¤é¹ÍÒËÒÃãËé¹Ñ¡ºÔ¹ÍÇ¡ÒÈͧ¤ì¡ÒùҫèÒ) ʹ㨠¢Í¤Óá¹Ð¹Óà¾ÔèÁàµÔÁä´é·Õè ¤Ø³ÊÔÃÔ 01-8901701¾º¤ÓµÍºÊØ´·éÒ¢ͧ¤Ø³ä´é·Õè¹Õè http://www.smartslender.com/foodforhealth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 6: 7:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gate.nentec.de (gate2.nentec.de [194.25.215.66]) by hub.freebsd.org (Postfix) with ESMTP id 0825737B400 for ; Mon, 10 Jun 2002 06:07:15 -0700 (PDT) Received: from nenny.nentec.de (root@nenny.nentec.de [153.92.64.1]) by gate.nentec.de (8.11.3/8.9.3) with ESMTP id g5AD7DA09293; Mon, 10 Jun 2002 15:07:13 +0200 Received: from nentec.de (andromeda.nentec.de [153.92.64.34]) by nenny.nentec.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id g5AD7BZ04591; Mon, 10 Jun 2002 15:07:11 +0200 Message-ID: <3D04A47F.5070803@nentec.de> Date: Mon, 10 Jun 2002 15:07:11 +0200 From: Andy Sporner User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.8) Gecko/20020204 X-Accept-Language: de-at, de, en, en-us MIME-Version: 1.0 To: Ferruccio Vitale Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kernel thread References: <3D0477EE.9DAA3361@cs.tin.it> <3D04832C.5070800@nentec.de> <3D049387.ED836550@cs.tin.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG My fault. I am using 5.0 Try this: man shutdown_kproc There was some name changes as shown: HISTORY The kproc_start() function first appeared in FreeBSD 2.2. The kproc_shutdown(), kthread_create(), kthread_exit(), kthread_resume(), kthread_suspend(), and kthread_suspend_check() functions were introduced in FreeBSD 4.0. Prior to FreeBSD 5.0, the kproc_shutdown(), kthread_resume(), kthread_suspend(), and kthread_suspend_check() func- tions were named shutdown_kproc(), resume_kproc(), shutdown_kproc(), and kproc_suspend_loop(), respectively. Sorry about that... Hope this helps... ANdy Ferruccio Vitale wrote: >Andy Sporner wrote: > >>man ktread_shutdown >> >>To Unsubscribe: send mail to majordomo@FreeBSD.org >>with "unsubscribe freebsd-hackers" in the body of the message >> > >I can't find any man pages about it; I searched on the net, grep'ed >/usr/src entirely but any results. >I've freebsd 4.6RC release. > >Any advice? > >Ferruccio > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 8:55:21 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from popcs.cs.tin.it (popcs.cs.tin.it [194.243.155.125]) by hub.freebsd.org (Postfix) with SMTP id 0318A37B401 for ; Mon, 10 Jun 2002 08:55:18 -0700 (PDT) Received: (qmail 46 invoked from network); 10 Jun 2002 12:00:05 -0000 Received: from cruiser.cs.tin.it (HELO cs.tin.it) (212.216.178.193) by popcs.cs.tin.it with SMTP; 10 Jun 2002 12:00:05 -0000 Message-ID: <3D049387.ED836550@cs.tin.it> Date: Mon, 10 Jun 2002 13:54:47 +0200 From: Ferruccio Vitale X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Andy Sporner Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kernel thread References: <3D0477EE.9DAA3361@cs.tin.it> <3D04832C.5070800@nentec.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andy Sporner wrote: > > man ktread_shutdown > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message I can't find any man pages about it; I searched on the net, grep'ed /usr/src entirely but any results. I've freebsd 4.6RC release. Any advice? Ferruccio To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 8:59:15 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from sharmas.dhs.org (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by hub.freebsd.org (Postfix) with ESMTP id 3754737B409 for ; Mon, 10 Jun 2002 08:59:13 -0700 (PDT) Received: by sharmas.dhs.org (Postfix, from userid 500) id E6D635E003; Mon, 10 Jun 2002 09:00:15 -0700 (PDT) Date: Mon, 10 Jun 2002 09:00:15 -0700 From: Arun Sharma To: Terry Lambert Cc: freebsd-hackers@freebsd.org Subject: Re: 0xdeadxxxx ? Message-ID: <20020610160015.GA11169@sharma-home.net> References: <20020610002316.GA6628@sharma-home.net> <3D0449C9.27338938@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D0449C9.27338938@mindspring.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Jun 09, 2002 at 11:40:09PM -0700, Terry Lambert wrote: > 0xdeadc162 - 0xdeadc0de = 0x00000084 = 132 decimal > > Look for a short value that's getting set to 132. As I said in another email, I think this is td1->td_priority in kern_mutex.c:510. -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 10:45:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web21106.mail.yahoo.com (web21106.mail.yahoo.com [216.136.227.108]) by hub.freebsd.org (Postfix) with SMTP id A772F37B405 for ; Mon, 10 Jun 2002 10:45:51 -0700 (PDT) Message-ID: <20020610174547.19800.qmail@web21106.mail.yahoo.com> Received: from [62.254.0.5] by web21106.mail.yahoo.com via HTTP; Mon, 10 Jun 2002 10:45:47 PDT Date: Mon, 10 Jun 2002 10:45:47 -0700 (PDT) From: Hiten Pandya Reply-To: hiten@uk.FreeBSD.org Subject: Re: kernel thread To: Andy Sporner , Ferruccio Vitale Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <3D04A47F.5070803@nentec.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- Andy Sporner wrote: > My fault. I am using 5.0 > man shutdown_kproc Ok, I cant find any man page called shutdown_kproc in either 4.3 or 4.4. Anyway, he wants to destroy a "thread", and not an "internal" daemon/process. To destroy a kernel thread, you need to make use of the kthread_exit() operation. It is prototyped as follows: void kthread_exit(ecode); The *ecode* arg to kthread_exit() is used to specify the return code of the thread which you are going to terminate. Additonal Information can be found from: kthread(9) -- (available in FreeBSD 5.0) sys/kthread.h HTH. Hiten hiten@uk.FreeBSD.org, hiten@xMach.org __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 13:33: 9 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.openet-telecom.com (mail.openet-telecom.com [62.17.151.60]) by hub.freebsd.org (Postfix) with ESMTP id D26BC37B403 for ; Mon, 10 Jun 2002 13:33:05 -0700 (PDT) Received: from gpo.openet-telecom.lan (unverified) by mail.openet-telecom.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Mon, 10 Jun 2002 21:44:56 +0100 Received: from openet-telecom.com (10.0.0.40) by gpo.openet-telecom.lan (NPlex 6.5.007) id 3CF373520000A9F6; Mon, 10 Jun 2002 21:29:51 +0100 Message-ID: <3D050CFB.A9A74AF9@openet-telecom.com> Date: Mon, 10 Jun 2002 21:33:00 +0100 From: Peter Edwards X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Cc: pmedwards@eircom.net Subject: interaction between wait(2), ptrace(2), and rfork(2) with flags |= RFLINUXTHPN Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, kern_exit.c:wait1() has the following lines in -STABLE: > if ((p->p_sigparent != SIGCHLD) ^ ((uap->options & WLINUXCLONE) != 0)) > continue; As it is, if you ptrace(PT_ATTACH) to a process started with rfork(flags|RFLINUXTHPN), and do a waitpid() as you normally would, this causes waitpid() to fail with ECHILD, because the original parent/child relationship doesn't hold, and the debugger doesn't know that the debugee was started in this fashion. This can also mean that the ptrace(PT_DETACH) ends up killing the process, because you can't guarantee that it is stopped by the time you get to do the ptrace(PT_DETACH). In order to allow existing ptrace(2)-using programs to attach to such processes, would the following be more appropriate? > if ((p->p_sigparent != SIGCHILD && (p->p_flag & PTRACED) == 0) ^ > ((uap->options & WLINUXCLONE) != 0)) (BTW: Why "^" rather than "!=" ? I would have thought a boolean operator more natural here.) Cheers, Peter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 14: 3:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mrout2.yahoo.com (mrout2.yahoo.com [216.145.54.172]) by hub.freebsd.org (Postfix) with ESMTP id 9D0E137B40F; Mon, 10 Jun 2002 14:03:29 -0700 (PDT) Received: from zoot.corp.yahoo.com (zoot.corp.yahoo.com [216.145.52.89]) by mrout2.yahoo.com (8.11.6/8.11.6/y.out) with ESMTP id g5AL3IR98374; Mon, 10 Jun 2002 14:03:18 -0700 (PDT) Received: from localhost (dougb@localhost) by zoot.corp.yahoo.com (8.12.3/8.12.3/Submit) with ESMTP id g5AL3Iwu044214; Mon, 10 Jun 2002 14:03:18 -0700 (PDT) Date: Mon, 10 Jun 2002 14:03:17 -0700 (PDT) From: Doug Barton To: freebsd-hackers@FreeBSD.org, Cc: makonnen@pacbell.net Subject: "cost" of vidcontrol -m ? Message-ID: <20020610135855.W44026-100000@zoot.corp.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/39125 presents an interesting hypothesis, namely that vidcontrol -m ought to be enabled by default in usbd.conf. I tend to agree with that premise, but before I commit it I was curious as to what the "cost" of doing this would be. Specifically, I have a usb mouse, but I spend almost all my time in X, so when I need the copy/paste stuff in the console, I just run vidcontrol by hand. It would be more convenient to have it "just work," but I'd hate to screw over low resource users in the proces... Doug -- "We have known freedom's price. We have shown freedom's power. And in this great conflict, ... we will see freedom's victory." - George W. Bush, President of the United States State of the Union, January 28, 2002 Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 14: 4:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from cantor.espacecourbe.com (cantor.espacecourbe.com [205.205.35.2]) by hub.freebsd.org (Postfix) with ESMTP id B0D1037B410 for ; Mon, 10 Jun 2002 14:03:39 -0700 (PDT) Received: from espacecourbe.com ([192.168.1.93]) by cantor.espacecourbe.com (8.9.3/8.9.3) with ESMTP id RAA20516 for ; Mon, 10 Jun 2002 17:03:27 -0400 Message-ID: <3D05141F.3000507@espacecourbe.com> Date: Mon, 10 Jun 2002 17:03:27 -0400 From: Dominique Arpin User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; fr-FR; rv:1.0rc2) Gecko/20020512 Netscape/7.0b1 X-Accept-Language: fr-fr, fr MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Fatal trap 12 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have this problem, someone can help me? Fatal trap 12: page fault while in kernel mode fault virtual address = 0x3090 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01d0a61 stack pointer = 0x10:0xd7ec3e18 frame pointer = 0x10:0xd7ec3e1c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 71619 (perl) interrupt mask = net bio cam trap number = 12 panic: page fault (kgdb) where #0 dumpsys () at ../../kern/kern_shutdown.c:474 #1 0xc015530b in boot (howto=256) at ../../kern/kern_shutdown.c:313 #2 0xc0155705 in panic (fmt=0xc0237b4c "%s") at ../../kern/kern_shutdown.c:582 #3 0xc0203b43 in trap_fatal (frame=0xd7ec3dd8, eva=12432) at ../../i386/i386/trap.c:956 #4 0xc02037f1 in trap_pfault (frame=0xd7ec3dd8, usermode=0, eva=12432) at ../../i386/i386/trap.c:849 #5 0xc0203397 in trap (frame={tf_fs = 2147418128, tf_es = -672399344, tf_ds = -711196656, tf_edi = 7242816, tf_esi = 12384, tf_ebp = -672383460, tf_isp = -672383484, tf_ebx = -1062788776, tf_edx = -1061673196, tf_ecx = 12384, tf_eax = 12465, tf_trapno = 12, tf_err = 0, tf_eip = -1071838623, tf_cs = 8, tf_eflags = 66054, tf_esp = -1062788776, tf_ss = -672383432}) at ../../i386/i386/trap.c:448 #6 0xc01d0a61 in vm_page_remove (m=0xc0a72158) at ../../vm/vm_page.c:455 #7 0xc01d10c4 in vm_page_free_toq (m=0xc0a72158) at ../../vm/vm_page.c:1090 #8 0xc01cf05e in vm_object_terminate (object=0xd7c83060) at ../../vm/vm_page.h:527 #9 0xc01cef2a in vm_object_deallocate (object=0xd7c83060) at ../../vm/vm_object.c:387 #10 0xc01cc32b in vm_map_entry_delete (map=0xd7a5d980, entry=0xd79f36f0) at ../../vm/vm_map.c:1823 #11 0xc01cc4ad in vm_map_delete (map=0xd7a5d980, start=0, end=3217031168) at ../../vm/vm_map.c:1926 #12 0xc01cc53a in vm_map_remove (map=0xd7a5d980, start=0, end=3217031168) at ../../vm/vm_map.c:1951 #13 0xc014d9a4 in exit1 (p=0xd7a08a00, rv=0) at ../../kern/kern_exit.c:219 #14 0xc014d784 in exit1 (p=0xd7a08a00, rv=0) at ../../kern/kern_exit.c:103 #15 0xc0203df9 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 0, tf_esi = -1, tf_ebp = -1077938700, tf_isp = -672383020, tf_ebx = 672925284, tf_edx = 672924864, tf_ecx = 674050504, tf_eax = 1, tf_trapno = 0, tf_err = 2, tf_eip = 672626020, tf_cs = 31, tf_eflags = 659, tf_esp = -1077938744, tf_ss = 47}) at ../../i386/i386/trap.c:1157 #16 0xc01f8245 in Xint0x80_syscall () Cannot access memory at address 0xbfbff5f4. -- Dominique Arpin___________________________[ espace gestionnaire réseau courbe ] http://www.espacecourbe.com/ téléphone 514.933.9861 télécopieur 514.933.9546 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 17:30:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 29F9E37B400 for ; Mon, 10 Jun 2002 17:30:28 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.3/8.12.2) with ESMTP id g5B0UGJn092417; Mon, 10 Jun 2002 17:30:16 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.3/8.12.3/Submit) id g5B0UCQP092416; Mon, 10 Jun 2002 17:30:12 -0700 (PDT) Date: Mon, 10 Jun 2002 17:30:12 -0700 From: "David O'Brien" To: "Brandon D. Valentine" Cc: Miguel Mendez , freebsd-hackers@freebsd.org Subject: Re: raidframe Message-ID: <20020610173012.A87145@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: <20020529205841.A54965@energyhq.homeip.net> <20020529141424.E38505-100000@leto.homeportal.2wire.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020529141424.E38505-100000@leto.homeportal.2wire.net>; from bandix@geekpunk.net on Wed, May 29, 2002 at 02:18:40PM -0500 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, May 29, 2002 at 02:18:40PM -0500, Brandon D. Valentine wrote: > If you really want to play with RAIDframe I'd guess you'll have a much > easier time of it under NetBSD, where it is included with the operating > system. Getting it working under FreeBSD could be a lot of fun and you > might learn a lot, but I don't see it being a terribly useful exercise > otherwise. I get the impression that most of us are quite happy with > vinum and would not desire that FreeBSD bloat the kernel by including > two software RAID frameworks. Then again, I speak for noone by myself. You quite speak for yourself. I've seen the FreeBSD community more split 50%-50% in their love-hate of Vinum. Many of us still use ccd(4) because Vinum did not meet our needs. Scott Long had just about ported RAIDframe to FreeBSD, when the bits got lost in a disk crash. So the rumor goes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 18: 7:56 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id E8D9B37B409; Mon, 10 Jun 2002 18:07:53 -0700 (PDT) Received: from pool0444.cvx22-bradley.dialup.earthlink.net ([209.179.199.189] helo=mindspring.com) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17Ha8V-0002CQ-00; Mon, 10 Jun 2002 18:07:52 -0700 Message-ID: <3D054D44.68E4DDBC@mindspring.com> Date: Mon, 10 Jun 2002 18:07:16 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: obrien@freebsd.org Cc: "Brandon D. Valentine" , Miguel Mendez , freebsd-hackers@freebsd.org Subject: Re: raidframe References: <20020529205841.A54965@energyhq.homeip.net> <20020529141424.E38505-100000@leto.homeportal.2wire.net> <20020610173012.A87145@dragon.nuxi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David O'Brien wrote: > You quite speak for yourself. I've seen the FreeBSD community more split > 50%-50% in their love-hate of Vinum. Many of us still use ccd(4) because > Vinum did not meet our needs. Alfred Perlsteing claims "Vinum comes from the universe where Spock has a beard" (sorry, Greg!). > Scott Long had just about ported RAIDframe to FreeBSD, when the bits got > lost in a disk crash. So the rumor goes. I guess you are talking about a kernel version of the code. I did the original port of the user space version of the code; the patches are still up on freebsd.org. The kernel stuff is harder and easier. I know this seems at first to be contradictory... ;^). Basically, there's NetBSD code for this, and porting NetBSD code to FreeBSD is mostly what I would call "grunt work": not a lot of thinking is required. It's harder, because as FreeBSD changes it's VM system, it becomes harder to keep a lot of things up to date (file systems, etc.). Erez Zadok's code for FiST (Filesystem Stacking Templates) used to work with 4.3, but the changes to 4.5 were significant enough that cache coherency was broken. In any case, it's not like an obscene amount of work had to have been invested by Scott Long to make the thing work, so duplicating it is not tantamount to searching for The Rosetta Stone. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jun 10 18:26:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from birch.ripe.net (birch.ripe.net [193.0.1.96]) by hub.freebsd.org (Postfix) with ESMTP id A977A37B400 for ; Mon, 10 Jun 2002 18:26:30 -0700 (PDT) Received: from laptop.6bone.nl (penguin.ripe.net [193.0.1.232]) by birch.ripe.net (8.11.6/8.11.6) with SMTP id g5B1QTA30499 for ; Tue, 11 Jun 2002 03:26:29 +0200 Received: (nullmailer pid 30854 invoked by uid 1000); Tue, 11 Jun 2002 01:26:28 -0000 Date: Tue, 11 Jun 2002 03:26:28 +0200 From: Mark Santcroos To: hackers@freebsd.org Subject: kernel booting diff between boot2 and loader Message-ID: <20020611012627.GM20001@laptop.6bone.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.99i X-Handles: MS6-6BONE, MS18417-RIPE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I wonder what is different in booting the kernel from loader(8) and from boot2. In vmware2 I am not able to boot the kernel from boot2, it hangs after loading the kernelfile. Using loader it goes fine. I tried current,stable and generic kernels, all without luck. This was not really a problem, until I wanted to use etherboot, where I ofcourse can't use loader. Any help or insight into this will be gladly accepted :-) Mark -- Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jun 11 1:37:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 7ED8E37B404 for ; Tue, 11 Jun 2002 01:37:04 -0700 (PDT) Received: (qmail 4385 invoked from network); 11 Jun 2002 08:37:03 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 11 Jun 2002 08:37:03 -0000 Received: from laptop.baldwin.cx ([206.187.69.211]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g5B8b1Q81401; Tue, 11 Jun 2002 04:37:01 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3D0477EE.9DAA3361@cs.tin.it> Date: Tue, 11 Jun 2002 04:36:55 -0400 (EDT) From: John Baldwin To: Ferruccio Vitale Subject: RE: kernel thread Cc: freebsd-hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 10-Jun-2002 Ferruccio Vitale wrote: > Hi, > > how can I destroy a kernel thread that I previously created? > Regards, You need to signal the kthread (kproc) somehow and have it call kthread_exit() to commit suicide. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jun 11 1:37:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by hub.freebsd.org (Postfix) with ESMTP id 074CA37B400 for ; Tue, 11 Jun 2002 01:36:57 -0700 (PDT) Received: (qmail 3013 invoked from network); 11 Jun 2002 08:36:55 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 11 Jun 2002 08:36:55 -0000 Received: from laptop.baldwin.cx ([206.187.69.211]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g5B8arQ81397; Tue, 11 Jun 2002 04:36:53 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020610033520.GA7795@sharma-home.net> Date: Tue, 11 Jun 2002 04:36:47 -0400 (EDT) From: John Baldwin To: Arun Sharma Subject: RE: Kernel hacking questions Cc: freebsd-hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 10-Jun-2002 Arun Sharma wrote: > 1. Can I use a SMP kernel and bring it up with just one CPU on a two CPU > machine ? Hmm, on alpha you can, I don't think we support that on i386, but it would be easy enough to tweak. > 2. How do I trace back funcname+offset to a particular line of C code ? > I tried objdump -d and gcc -S, but it's not easy to read. I thought > there was a way to get gcc to interleave the C code and the generated > assembly. gdb's 'l *foo+0x34' works wonders. :) If you are stuck with a kernel.debug on current that gdb doesn't grok, you can use nm to extract the address of the function, add the offset, and use 'addr2line -e kernel.debug 0xc0yyyyyy'. > I have a suspicion that in kern_mutex.c:510, > > if (td1->td_priority < td->td_priority) > > there may be circumstances in which td1 could be pointing to memory that > has been freed. I've got a bunch of panics which result in kernel mode > page faults at 0xdeadxxxx. That would certainly be interesting. :) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jun 11 7:11:45 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 4C20B37B40A; Tue, 11 Jun 2002 07:11:35 -0700 (PDT) Received: from opal (cs.binghamton.edu [128.226.123.101]) by bingnet2.cc.binghamton.edu (8.11.6/8.11.6) with ESMTP id g5BEBSY27522; Tue, 11 Jun 2002 10:11:28 -0400 (EDT) Date: Tue, 11 Jun 2002 10:11:26 -0400 (EDT) From: Zhihui Zhang X-Sender: zzhang@opal To: John Baldwin Cc: Ferruccio Vitale , freebsd-hackers@freebsd.org Subject: RE: kernel thread In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I asked a very similar question a while ago (within at most two months I think). Try search for subject "kernel daemon cleanup". -Zhihui On Tue, 11 Jun 2002, John Baldwin wrote: > > On 10-Jun-2002 Ferruccio Vitale wrote: > > Hi, > > > > how can I destroy a kernel thread that I previously created? > > Regards, > > You need to signal the kthread (kproc) somehow and have it call > kthread_exit() to commit suicide. > > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jun 11 9:11:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from popcs.cs.tin.it (popcs.cs.tin.it [194.243.155.125]) by hub.freebsd.org (Postfix) with SMTP id 4C15537B41C for ; Tue, 11 Jun 2002 09:10:37 -0700 (PDT) Received: (qmail 7645 invoked from network); 11 Jun 2002 09:08:45 -0000 Received: from cruiser.cs.tin.it (HELO cs.tin.it) (212.216.178.193) by popcs.cs.tin.it with SMTP; 11 Jun 2002 09:08:45 -0000 Message-ID: <3D05BCE2.600E180A@cs.tin.it> Date: Tue, 11 Jun 2002 11:03:31 +0200 From: Ferruccio Vitale X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: hiten@uk.FreeBSD.org Cc: Andy Sporner , freebsd-hackers@FreeBSD.ORG Subject: Re: kernel thread References: <20020610174547.19800.qmail@web21106.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hiten Pandya wrote: > Ok, I cant find any man page called shutdown_kproc in either 4.3 or 4.4. > Anyway, he wants to destroy a "thread", and not an "internal" daemon/process. > > To destroy a kernel thread, you need to make use of the kthread_exit() > operation. It is prototyped as follows: > > void kthread_exit(ecode); > > The *ecode* arg to kthread_exit() is used to specify the return code of > the thread which you are going to terminate. > > Additonal Information can be found from: > kthread(9) -- (available in FreeBSD 5.0) > sys/kthread.h > > HTH. > > Hiten > hiten@uk.FreeBSD.org, hiten@xMach.org > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message Ok, I found the way! :-) On loading my kernel module, I call kthread_create to create the thread (kproc_start is only a wrapper to it). Doing this, I also obtain the pid of new process: this one enters in a loop as shown below: while (var == 0) { kproc_suspend_loop(procp); ..... tsleep(procp, PUSER, "procslp", hz); } kthread_exit(0); On unloading this module, I set to 1 'var' and let the thread exits. I hope this the right way to do it. Thanx to everyone, guy :-) Ferruccio PS: oohh my english...... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Jun 11 10:17:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by hub.freebsd.org (Postfix) with ESMTP id 7C8C837B404 for ; Tue, 11 Jun 2002 10:17:34 -0700 (PDT) Received: (qmail 8570 invoked from network); 11 Jun 2002 17:17:33 -0000 Received: from unknown (HELO asus.tddhome) ([64.81.20.229]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 11 Jun 2002 17:17:33 -0000 Received: from asus.tddhome (localhost [127.0.0.1]) by asus.tddhome (8.12.3/8.12.3) with ESMTP id g5BHHXYN002404; Tue, 11 Jun 2002 10:17:33 -0700 (PDT) (envelope-from tomdean@speakeasy.org) Received: (from tomdean@localhost) by asus.tddhome (8.12.3/8.12.3/Submit) id g5BHHW1G002401; Tue, 11 Jun 2002 10:17:32 -0700 (PDT) Date: Tue, 11 Jun 2002 10:17:32 -0700 (PDT) Message-Id: <200206111717.g5BHHW1G002401@asus.tddhome> X-Authentication-Warning: asus.tddhome: tomdean set sender to tomdean@speakeasy.org using -f From: "Thomas D. Dean" To: freebsd-hackers@freeBSD.org Cc: wvengen@stack.nl In-reply-to: <20020611163122.796474d2.wvengen@stack.nl> (message from Willem van Engen on Tue, 11 Jun 2002 16:31:22 +0200) Subject: ASUS A7n266-E, nVidia nForce IGP-128 and SMBus References: <200206100201.g5A21Etw001441@asus.tddhome> <20020611163122.796474d2.wvengen@stack.nl> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I moved this discussion to -hackers, as suggested. I tried -hardware, but, no response. I have an ASUS A7N266-E motherboard with the nVidia nForce IGP-128 Northbridge chip, nVidia nForce MCP Southbridge chip, and AMD XP 1800. # uname -a FreeBSD asus 4.6-RC FreeBSD 4.6-RC #8: Mon Jun 10 19:11:16 PDT 2002 \ root@asus:/usr/src/sys/compile/ASUS i386 The nVidia chip is not supported. I want to access the SMBus to add some devices. Of course, ASUS and nVidia will not provide the information necessary to do this easily! I have attached the output of pciconf -lv and dmesg w/ bootverbose. From a previos discussion, the smbus drivers provide the smbus attached to one of several busses, iicsmb, bti2c, intsmb, alsmb, ichsmb, amdsmb, or viapropm. The nearest one to my motherboard is: pci---amdpm---amdsmb---smbus---smb The nVidia chip is similar to the definitions in sys/pci/pcireg.h and from lm-sensors, rumored to be similar to the AMD-758 chipset. I tried patching sys/pci/amdpm.c to recognize the nVidia chip. No glory. The maps are at 0x10. Amdpm.c uses a map from 0x58 for the power management stuff. I guess, see below, the proper map is at 0x18. # pciconf -r pci0:1:1 0x00:0xff 0x01b410de 0x00b00001 0x0c0500c1 0x00800000 0x00005001 0x00005501 0x00005101 0x00000000 0x00000000 0x00000000 0x00000000 0x0c111043 0x00000000 0x00000044 0x00000000 0x01030105 0x0c111043 0xc0020001 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ... 0x00000000 0x00000000 0x00000000 0x00000000 The chip has 3 map registers containing 0x00005001, 0x00005501, and 0x00005101, respectively. These are map pointers. I assume these are physical addresses? How do I determine the block sizes? What is in these memory blocks? I cobbled together a kld from amdpm, smbus, etc. Loading it produced some information. But, I could not unload it and it did nothing... Also, the 0x5500 memory block was duplicated by some of the underlying code... One line from the console: SMBus0: port 0x5500-0x550f,0x5100-0x511f,0x5500-0x550f,0x5000-0x500f irq 5 at device 1.1 on pci0 I think the blocks are 5000:501f, 5500:550f, and 5100:511f. From sizes, I think the 5100:511f block is power management. If so, I can guess at some of the definitions. The PCIR_HEADERTYPE is 0x80. What is PCIM_MFDEV? Modified Device? The header appears to be a type 0 with PCIR_SUBVEND_2 and PCIR_SUBDEV_2 from the type 2 header. PCIR_CAP_PTR is the start of the capaility list, the the only capability lword being 0xc0020001. Where do I get the definition of this lword? tomdean ==== pciconf -lv ====================================== chip0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x01a410de rev=0xb2 hdr=0x00 vendor = 'Nvidia Corporation' device = 'nForce AGP Controller' class = bridge subclass = HOST-PCI none0@pci0:0:1: class=0x050000 card=0x0c111043 chip=0x01ac10de rev=0xb2 hdr=0x00 vendor = 'Nvidia Corporation' device = 'nForce 220/420 Memory Controller' class = memory subclass = RAM none1@pci0:0:2: class=0x050000 card=0x0c111043 chip=0x01ad10de rev=0xb2 hdr=0x00 vendor = 'Nvidia Corporation' device = 'nForce 220/420 Memory Controller' class = memory subclass = RAM none2@pci0:0:3: class=0x050000 card=0x0c111043 chip=0x01ab10de rev=0xb2 hdr=0x00 vendor = 'Nvidia Corporation' device = 'nForce 420 Memory Controller (DDR)' class = memory subclass = RAM isab0@pci0:1:0: class=0x060100 card=0x0c111043 chip=0x01b210de rev=0xc3 hdr=0x00 vendor = 'Nvidia Corporation' device = 'nForce HUB Interface' class = bridge subclass = PCI-ISA none3@pci0:1:1: class=0x0c0500 card=0x0c111043 chip=0x01b410de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corporation' device = 'nForce SMBus Controller' class = serial bus subclass = SMBus ohci0@pci0:2:0: class=0x0c0310 card=0x0c111043 chip=0x01c210de rev=0xc3 hdr=0x00 vendor = 'Nvidia Corporation' device = 'nForce OHCI USB Controller' class = serial bus subclass = USB ohci1@pci0:3:0: class=0x0c0310 card=0x0c111043 chip=0x01c210de rev=0xc3 hdr=0x00 vendor = 'Nvidia Corporation' device = 'nForce OHCI USB Controller' class = serial bus subclass = USB pcib1@pci0:8:0: class=0x060400 card=0x00000044 chip=0x01b810de rev=0xc2 hdr=0x01 vendor = 'Nvidia Corporation' device = 'nForce PCI Bridge' class = bridge subclass = PCI-PCI atapci0@pci0:9:0: class=0x01018a card=0x0c111043 chip=0x01bc10de rev=0xc3 hdr=0x00 vendor = 'Nvidia Corporation' device = 'nForce ATA Controller' class = mass storage subclass = ATA pcib2@pci0:30:0: class=0x060400 card=0x00000000 chip=0x01b710de rev=0xb2 hdr=0x01 vendor = 'Nvidia Corporation' device = 'nForce AGP Host to PCI Bridge' class = bridge subclass = PCI-PCI rl0@pci1:2:0: class=0x020000 card=0x805b1043 chip=0x813910ec rev=0x10 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'RT8139 (A/B/C/8130) Fast Ethernet Adapter' class = network subclass = ethernet none4@pci2:0:0: class=0x030000 card=0x003a1002 chip=0x51591002 rev=0x00 hdr=0x00 vendor = 'ATI Technologies' device = 'Radeon VE QY' class = display subclass = VGA ==== from dmesg - only the last boot ================== syncing disks... 8 1 done Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.6-RC #8: Mon Jun 10 19:11:16 PDT 2002 root@asus:/usr/src/sys/compile/ASUS Calibrating clock(s) ... TSC clock: 1536760511 Hz, i8254 clock: 1193137 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method CPU: AMD Athlon(TM) XP 1800+ (1536.83-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383fbff AMD Features=0xc0480000<,AMIE,DSP,3DNow!> Data TLB: 32 entries, fully associative Instruction TLB: 16 entries, fully associative L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative real memory = 536788992 (524208K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x0034e000 - 0x1ffe3fff, 533291008 bytes (130198 pages) avail memory = 519471104 (507296K bytes) bios32: Found BIOS32 Service Directory header at 0xc00f2180 bios32: Entry = 0xf1870 (c00f1870) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0x1a70 pnpbios: Found PnP BIOS data at 0xc00fbe80 pnpbios: Entry = f0000:beb0 Rev = 1.0 pnpbios: OEM ID cd041 Other BIOS signatures found: ACPI: 000f7d30 Preloaded elf kernel "kernel" at 0xc0327000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc032709c. Pentium Pro MTRR support enabled md0: Malloc disk Creating DISK md0 pci_open(1): mode 1 addr port (0x0cf8) is 0x80000000 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=80] is there (id=01a410de) Using $PIR table, 14 entries at 0xc00f2070 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard found-> vendor=0x10de, dev=0x01a4, revid=0xb2 class=06-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 pci_add_map vendor 10de device 1a4 reg 10 map f8000008 base f8000000 map[10]: type 1, range 32, base f8000000, size 26 found-> vendor=0x10de, dev=0x01ac, revid=0xb2 class=05-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x10de, dev=0x01ad, revid=0xb2 class=05-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x10de, dev=0x01ab, revid=0xb2 class=05-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x10de, dev=0x01b2, revid=0xc3 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x10de, dev=0x01b4, revid=0xc1 class=0c-05-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 intpin=a, irq=5 pci_add_map vendor 10de device 1b4 reg 10 map 5001 base 5000 map[10]: type 1, range 32, base 00005000, size 4 pci_add_map vendor 10de device 1b4 reg 14 map 5501 base 5500 map[14]: type 1, range 32, base 00005500, size 4 pci_add_map vendor 10de device 1b4 reg 18 map 5101 base 5100 map[18]: type 1, range 32, base 00005100, size 5 found-> vendor=0x10de, dev=0x01c2, revid=0xc3 class=0c-03-10, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=10 pci_add_map vendor 10de device 1c2 reg 10 map ef000000 base ef000000 map[10]: type 1, range 32, base ef000000, size 12 found-> vendor=0x10de, dev=0x01c2, revid=0xc3 class=0c-03-10, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=10 pci_add_map vendor 10de device 1c2 reg 10 map ee800000 base ee800000 map[10]: type 1, range 32, base ee800000, size 12 found-> vendor=0x10de, dev=0x01b8, revid=0xc2 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=1 secondarybus=1 found-> vendor=0x10de, dev=0x01bc, revid=0xc3 class=01-01-8a, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 pci_add_map vendor 10de device 1bc reg 20 map b801 base b800 map[20]: type 1, range 32, base 0000b800, size 4 found-> vendor=0x10de, dev=0x01b7, revid=0xb2 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=2 secondarybus=2 pci0: on pcib0 pci0: (vendor=0x10de, dev=0x01ac) at 0.1 pci0: (vendor=0x10de, dev=0x01ad) at 0.2 pci0: (vendor=0x10de, dev=0x01ab) at 0.3 isab0: at device 1.0 on pci0 isa0: on isab0 pci0: (vendor=0x10de, dev=0x01b4) at 1.1 irq 5 ohci0: mem 0xef000000-0xef000fff irq 10 at device 2.0 on pci0 ohci0: (New OHCI DeviceId=0x01c210de) usb0: OHCI version 1.0 usb0: on ohci0 usb0: USB revision 1.0 uhub0: (unknown) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0xee800000-0xee800fff irq 10 at device 3.0 on pci0 ohci1: (New OHCI DeviceId=0x01c210de) using shared irq10. usb1: OHCI version 1.0 usb1: on ohci1 usb1: USB revision 1.0 uhub1: (unknown) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered pcib1: at device 8.0 on pci0 found-> vendor=0x10ec, dev=0x8139, revid=0x10 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 pci_add_map vendor 10ec device 8139 reg 10 map c801 base c800 map[10]: type 1, range 32, base 0000c800, size 8 pci_add_map vendor 10ec device 8139 reg 14 map ed000000 base ed000000 map[14]: type 1, range 32, base ed000000, size 8 pci1: on pcib1 rl0: port 0xc800-0xc8ff mem 0xed000000-0xed0000ff irq 5 at device 2.0 on pci1 rl0: Ethernet address: 00:e0:18:5a:03:fc miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: rl0 attached atapci0: port 0xb800-0xb80f at device 9.0 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xb800 ata0: mask=03 ostat0=50 ostat2=50 ata0-master: ATAPI 00 00 ata0-slave: ATAPI 00 00 ata0: mask=03 stat0=50 stat1=50 ata0-master: ATA 01 a5 ata0-slave: ATA 01 a5 ata0: devices=03 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xb808 ata1: mask=03 ostat0=50 ostat2=00 ata1-master: ATAPI 14 eb ata1-slave: ATAPI 7f 7f ata1: mask=03 stat0=00 stat1=00 ata1: devices=04 ata1: at 0x170 irq 15 on atapci0 pcib2: at device 30.0 on pci0 found-> vendor=0x1002, dev=0x5159, revid=0x00 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=11 pci_add_map vendor 1002 device 5159 reg 10 map f0000008 base f0000000 map[10]: type 1, range 32, base f0000000, size 27 pci_add_map vendor 1002 device 5159 reg 14 map a801 base a800 map[14]: type 1, range 32, base 0000a800, size 8 pci_add_map vendor 1002 device 5159 reg 18 map ec800000 base ec800000 map[18]: type 1, range 32, base ec800000, size 16 pci2: on pcib2 pci2: (vendor=0x1002, dev=0x5159) at 0.0 irq 11 ata-: ata0 exists, using next available unit number ata-: ata1 exists, using next available unit number Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices orm0:
Hi!
My name is Valery Marchuk and I = can help you,=20 ofcource if you need it. I speak English, German, Russian and Ukrainian = and can=20 help in translation of handbook into these languages, besides, I`m a=20 web-designer.
If you are interested in my = help
e-mail me back and I`d be glad to = help=20 you
valery_marchuk@we.de
 
------=_NextPart_000_0005_01C21349.255F0600-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 0: 6: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f32.law9.hotmail.com [64.4.9.32]) by hub.freebsd.org (Postfix) with ESMTP id C553A37B40F for ; Fri, 14 Jun 2002 00:06:06 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 14 Jun 2002 00:06:06 -0700 Received: from 64.40.88.100 by lw9fd.law9.hotmail.msn.com with HTTP; Fri, 14 Jun 2002 07:06:06 GMT X-Originating-IP: [64.40.88.100] From: "echo dev" To: hackers@freebsd.org Subject: sorting in C Date: Fri, 14 Jun 2002 07:06:06 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 14 Jun 2002 07:06:06.0672 (UTC) FILETIME=[F4100D00:01C21371] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am pooling in as many different ways of sorting data in C i can anyone have a fav??? If anyone can give me some ideas on the best way to sort data in C would be helpful.. Thanks Dan _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 0: 9:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id BE45F37B404 for ; Fri, 14 Jun 2002 00:09:33 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id 916E9AE147; Fri, 14 Jun 2002 00:09:33 -0700 (PDT) Date: Fri, 14 Jun 2002 00:09:33 -0700 From: Alfred Perlstein To: echo dev Cc: hackers@freebsd.org Subject: Re: sorting in C Message-ID: <20020614070933.GP67925@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * echo dev [020614 00:06] wrote: > I am pooling in as many different ways of sorting data in C i can anyone > have a fav??? If anyone can give me some ideas on the best way to sort data > in C would be helpful.. Thanks man qsort -- -Alfred Perlstein [alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 0:31:21 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.npubs.com (npubs.com [207.111.208.224]) by hub.freebsd.org (Postfix) with ESMTP id 13DA737B47A for ; Fri, 14 Jun 2002 00:31:01 -0700 (PDT) Received: 8.12.2-(Neptune) From: "Nielsen" To: "John Nielsen" Cc: References: <015301c2117d$0db539c0$0900a8c0@max> Subject: Re: gif(4) tunnel through MSN DSL modem MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-Id: <20020614073101.13DA737B47A@hub.freebsd.org> Date: Fri, 14 Jun 2002 00:31:01 -0700 (PDT) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have this working fine. On the BSD machine behind NAT the tunnel looks like it's between a 192.168.x.x IP and the public IP of the machine across the internet. On the remote machine it looks like a normal tunnel between the two IPs. NAT takes care of the translation on the tunnel packets. I've used gif tunnels, vtund, and even IPSEC in this configuration just fine. Of course holes have to punched in NAT (bimap, port mapping or whatever it's called on your DSL). That's for reliability and so that the tunnel can be "initiated" from either end. Nate ----- Original Message ----- From: "John Nielsen" To: Sent: Tuesday, June 11, 2002 13:20 Subject: gif(4) tunnel through MSN DSL modem > Hi folks, > > I tried this on -questions without any luck, so I'm hoping for a better > response here . :) > > I remotely administer a FreeBSD 4.5 machine that is connected to the > internet through and MSN DSL modem. This modem does NAT (for a single > client) rather than bridging the connection. So the FreeBSD machine thinks > its public address is 192.168.1.2 (when in reality the modem is the only > device with a public address). This machine is itself doing NAT, acting as > a firewall and gateway for a private network. > > I would like to establish a gif(4) tunnel between this machine and my > firewall here in order to link the two private networks into one virtual > network. I have done this before with two machines that were directly > connected to the internet, but in this case the DSL modem on the far end > seems to be fouling things up. The modem seems to be passing everything > through, but I haven't gotten gif to work. > > Any ideas? Here's what I've tried--this is how I'd set it up if the DSL > modem weren't in the way. > > [excerpts from rc.conf on far (DSL) end] > # Private interface > ifconfig_xl0="inet 192.168.6.1 netmask 255.255.255.0" > # "Public" interface -- 192.168.1.2 netmask 255.255.255.252" > ifconfig_ed0="DHCP" > gif_interfaces="gif0" > gifconfig_gif0="DSL.public.ip myend.public.ip" > ifconfig_gif0="192.168.6.1 192.168.0.1" > static_routes="john" > route_john="-net 192.168.0 -interface gif0" > > [excerpts from rc.conf on this {my) end] > # Private interface > ifconfig_ep0="inet 192.168.0.1 netmask 255.255.255.0" > # Public interface > ifconfig_ed0="DHCP" > gif_interfaces="gif0" > gifconfig_gif0="myend.public.ip DSL.public.ip" > ifconfig_gif0="192.168.0.1 192.168.6.1" > static_routes="DSL" > route_DSL="-net 192.168.6 -interface gif0" > > I've tried both the modem's (real) public address and 192.168.1.1 (the > public interface's address) for DSL.public.ip, but neither seems to work. > Can this be made to work? Can gif be hacked so it will work? > > I can't justify switching to a more expensive provider just so this tunnel > will work, since it will mostly be a convenience for me and not the client. > As far as I know, there's no way to modify any settings on the DSL modem > itself. I do have full access to both FreeBSD machines. Again, any > suggestions or even a detailed description of why this won't work would be > appreciated. > > Thanks, > > JN > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 0:47:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from snipe.mail.pas.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id ACFB737B40D for ; Fri, 14 Jun 2002 00:47:26 -0700 (PDT) Received: from pool0278.cvx22-bradley.dialup.earthlink.net ([209.179.199.23] helo=mindspring.com) by snipe.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17Iln1-0006BJ-00; Fri, 14 Jun 2002 00:46:35 -0700 Message-ID: <3D099F31.8F0F0702@mindspring.com> Date: Fri, 14 Jun 2002 00:45:53 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: echo dev Cc: hackers@freebsd.org Subject: Re: sorting in C References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG echo dev wrote: > I am pooling in as many different ways of sorting data in C i can anyone > have a fav??? If anyone can give me some ideas on the best way to sort data > in C would be helpful.. Thanks The Art Of Computer Programming Volume 3: Sorting and Searching Donald Knuth Addison-Wesley ISBN: 0-201-03803-X Knuth's books: Collect them all! Be the first on your block! -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 1:25:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from HAL9000.wox.org (12-233-157-30.client.attbi.com [12.233.157.30]) by hub.freebsd.org (Postfix) with ESMTP id F2FD037B40F for ; Fri, 14 Jun 2002 01:25:48 -0700 (PDT) Received: (from das@localhost) by HAL9000.wox.org (8.11.6/8.11.6) id g5E8Ppm01322; Fri, 14 Jun 2002 01:25:51 -0700 (PDT) (envelope-from das) Date: Fri, 14 Jun 2002 01:25:41 -0700 From: David Schultz To: echo dev Cc: hackers@FreeBSD.ORG Subject: Re: sorting in C Message-ID: <20020614012541.A1275@HAL9000.wox.org> Mail-Followup-To: echo dev , hackers@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from echo_dev@hotmail.com on Fri, Jun 14, 2002 at 07:06:06AM +0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake echo dev : > I am pooling in as many different ways of sorting data in C i can anyone > have a fav??? If anyone can give me some ideas on the best way to sort data > in C would be helpful.. Thanks I've always been partial to bogosort. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 1:50:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from oasis.uptsoft.com (oasis.uptsoft.com [217.20.165.41]) by hub.freebsd.org (Postfix) with ESMTP id E2D0237B41B for ; Fri, 14 Jun 2002 01:50:16 -0700 (PDT) Received: (from devnull@localhost) by oasis.uptsoft.com (8.11.6/linuxconf) id g5E8oAY20471 for hackers@freebsd.org; Fri, 14 Jun 2002 11:50:10 +0300 Date: Fri, 14 Jun 2002 11:50:10 +0300 From: Sergey Lyubka To: hackers@freebsd.org Subject: locore.s quiestion Message-ID: <20020614115010.B20213@oasis.uptsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am writing an article about FreeBSD's startup and kernel init (it is at http://oasis.uptsoft.com/~devnull/dh/boot.html for whom it may be interesting) I am stucked at two lines in locore.s (IA 32 arch) /usr/src/sys/i386/i386/locore.s: pushl $begin /* jump to high virtualized address */ ret /* now running relocated at KERNBASE where the system is linked to run */ begin: /* set up bootstrap stack */ My question is: why this is done. My understanding was that the loader loaded the kernel at high virtual address already, so there's no need to jump. Thanks, -sergey -- Sergey Lyubka Asita Technologies Int, Galway, Ireland To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 2: 6:57 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from goose.mail.pas.earthlink.net (goose.mail.pas.earthlink.net [207.217.120.18]) by hub.freebsd.org (Postfix) with ESMTP id 94D9337B401 for ; Fri, 14 Jun 2002 02:06:52 -0700 (PDT) Received: from pool0278.cvx22-bradley.dialup.earthlink.net ([209.179.199.23] helo=mindspring.com) by goose.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17In2E-0003N7-00; Fri, 14 Jun 2002 02:06:23 -0700 Message-ID: <3D09B1E2.71DD6BF3@mindspring.com> Date: Fri, 14 Jun 2002 02:05:38 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Sergey Lyubka Cc: hackers@freebsd.org Subject: Re: locore.s quiestion References: <20020614115010.B20213@oasis.uptsoft.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sergey Lyubka wrote: > Hello, > I am writing an article about FreeBSD's startup > and kernel init > (it is at http://oasis.uptsoft.com/~devnull/dh/boot.html > for whom it may be interesting) This link is broken. > I am stucked at two lines in locore.s (IA 32 arch) > > /usr/src/sys/i386/i386/locore.s: > > pushl $begin /* jump to high virtualized address */ > ret > > /* now running relocated at KERNBASE where the system is linked to run */ > begin: > /* set up bootstrap stack */ > > My question is: > why this is done. My understanding was that the loader > loaded the kernel at high virtual address already, > so there's no need to jump. From my own notes: The address of the "begin" symbol is pushed onto the stack, and the btext() function returns ...not to its caller, but to the begin() funcion, in the relocated address space. This is one of those "You are not expected to understand this" things. Probably, you would benefit from reading: Protected Mode Software Architecture Tom Shanley Mindshare, Inc. Addison-Wesley Publishing Company ISBN 0-201-5447-X -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 2:46:48 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by hub.freebsd.org (Postfix) with ESMTP id 3FD5D37B445 for ; Fri, 14 Jun 2002 02:46:26 -0700 (PDT) Received: from pr-webmail-1.demon.net ([194.159.244.51] helo=web.mail.demon.net) by anchor-post-30.mail.demon.net with smtp (Exim 3.35 #1) id 17Inex-0008gZ-0U; Fri, 14 Jun 2002 10:46:23 +0100 Received: from ubik.demon.co.uk ([194.70.246.1]) by web.mail.demon.net with http; Fri, 14 Jun 2002 10:46:23 +0100 From: tony@ubik.demon.co.uk To: "Sergey Lyubka" , hackers@freebsd.org In-Reply-To: <20020614115010.B20213@oasis.uptsoft.com> Subject: Re: locore.s quiestion Date: Fri, 14 Jun 2002 10:46:23 +0100 User-Agent: Demon-WebMail/2.0 MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG devnull@uptsoft.com wrote: > Hello, Hi > I am writing an article about FreeBSD's startup > and kernel init > (it is at http://oasis.uptsoft.com/~devnull/dh/boot.html > for whom it may be interesting) I get a "no route to host" error. > I am stucked at two lines in locore.s (IA 32 arch) > > /usr/src/sys/i386/i386/locore.s: > > pushl $begin /* jump to high virtualized address */ > ret > > /* now running relocated at KERNBASE where the system is linked to run */ > begin: > /* set up bootstrap stack */ > > My question is: > why this is done. My understanding was that the loader > loaded the kernel at high virtual address already, > so there's no need to jump. It does exactly what it says on the tin. (To quote a long running UK tv advert series.) This code runs in real mode. The code prior to this detects the cpu type, etc... then sets up the virtual/paged memory mapping tables, then immediately prior to the code you quote is this bit: /* Now enable paging */ movl R(IdlePTD), %eax movl %eax,%cr3 /* load ptd addr into mmu */ movl %cr0,%eax /* get control word */ orl $CR0_PE|CR0_PG,%eax /* enable paging */ movl %eax,%cr0 /* and let's page NOW! */ Which enables paged memory mode in the processor control register. However to actually start using paged memory Intel's CPU documentation requires a flush and reload of the instruction stream. The pushl & ret are a convenient way to do this, possibly recommended by Intel - I don't have the relevant documentation to hand. The result is that the instruction after 'begin:' is the first to be executed in paged mode. Cheers, Tony To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 3:17:51 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from phobos.illtel.denver.co.us (dsl081-110-168.den1.dsl.speakeasy.net [64.81.110.168]) by hub.freebsd.org (Postfix) with ESMTP id 191DE37B40A for ; Fri, 14 Jun 2002 03:17:48 -0700 (PDT) Received: from phobos.illtel.denver.co.us (localhost [127.0.0.1]) by phobos.illtel.denver.co.us (8.12.1/8.12.1) with ESMTP id g5EA9jNL022164; Fri, 14 Jun 2002 04:09:45 -0600 Received: from localhost (abelits@localhost) by phobos.illtel.denver.co.us (8.12.1/8.12.1/Submit) with ESMTP id g5EA9jcG022161; Fri, 14 Jun 2002 04:09:45 -0600 Date: Fri, 14 Jun 2002 04:09:45 -0600 (MDT) From: Alex Belits To: David Schultz Cc: hackers@FreeBSD.ORG Subject: Re: sorting in C In-Reply-To: <20020614012541.A1275@HAL9000.wox.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 14 Jun 2002, David Schultz wrote: > Thus spake echo dev : > > I am pooling in as many different ways of sorting data in C i can anyone > > have a fav??? If anyone can give me some ideas on the best way to sort data > > in C would be helpful.. Thanks > > I've always been partial to bogosort. Hey, don't be _that_ mean to a poor Hotmail user -- maybe he got that address before W2K, layers of Local Director and Passport. OTOH, asking things like that here still deserves some mockery... -- Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 3:18:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from oasis.uptsoft.com (oasis.uptsoft.com [217.20.165.41]) by hub.freebsd.org (Postfix) with ESMTP id 3FA0C37B412 for ; Fri, 14 Jun 2002 03:18:27 -0700 (PDT) Received: (from devnull@localhost) by oasis.uptsoft.com (8.11.6/linuxconf) id g5EAIID21405; Fri, 14 Jun 2002 13:18:18 +0300 Date: Fri, 14 Jun 2002 13:18:18 +0300 From: Sergey Lyubka To: Terry Lambert Cc: hackers@freebsd.org Subject: Re: locore.s quiestion Message-ID: <20020614131818.A21397@oasis.uptsoft.com> Reply-To: Sergey Lyubka Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D09B1E2.71DD6BF3@mindspring.com> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > >From my own notes: > > The address of the "begin" symbol is pushed onto the stack, > and the btext() function returns ...not to its caller, but to > the begin() funcion, in the relocated address space. > > This is one of those "You are not expected to understand this" > things. Probably, you would benefit from reading: > Protected Mode Software Architecture > Tom Shanley I understand this well, Terry, but thanks, anyway. My question was - why the jump is done, I see no need to do that. When the loader calls btext, it is at high va already. Sorry about the link, it is broken now, so please ignore it. Regards, -sergey P.S. Terry, push/ret sequence has nothing with protected mode. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 3:34:15 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from oasis.uptsoft.com (oasis.uptsoft.com [217.20.165.41]) by hub.freebsd.org (Postfix) with ESMTP id 453E437B421 for ; Fri, 14 Jun 2002 03:34:10 -0700 (PDT) Received: (from devnull@localhost) by oasis.uptsoft.com (8.11.6/linuxconf) id g5EALVw21485; Fri, 14 Jun 2002 13:21:31 +0300 Date: Fri, 14 Jun 2002 13:21:31 +0300 From: Sergey Lyubka To: tony@ubik.demon.co.uk Cc: hackers@freebsd.org Subject: Re: locore.s quiestion Message-ID: <20020614100558.GA31152@loser.sporttime.net> Reply-To: Sergey Lyubka Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: User-Agent: Mutt/1.3.25i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Oh, got it. That's because of paging is set up. Thanks Tony ! -sergey p.s. btw, btext executes in protected mode, not in real. since the link is up now, you can refer to the article , that is described well there. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 5:41:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mtiwmhc21.worldnet.att.net (mtiwmhc21.worldnet.att.net [204.127.131.46]) by hub.freebsd.org (Postfix) with ESMTP id 315CB37B414 for ; Fri, 14 Jun 2002 05:41:23 -0700 (PDT) Received: from lnuxlab.ath.cx ([12.77.148.124]) by mtiwmhc21.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020614124116.DQYZ19182.mtiwmhc21.worldnet.att.net@lnuxlab.ath.cx>; Fri, 14 Jun 2002 12:41:16 +0000 Received: by lnuxlab.ath.cx (Postfix, from userid 1000) id D4CC81397A; Fri, 14 Jun 2002 08:45:30 -0400 (EDT) Date: Fri, 14 Jun 2002 08:45:30 -0400 To: echo dev Cc: hackers@freebsd.org Subject: Re: sorting in C Message-ID: <20020614124530.GA16778@lnuxlab.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i From: khromy@lnuxlab.ath.cx (khromy) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 14, 2002 at 07:06:06AM +0000, echo dev wrote: > I am pooling in as many different ways of sorting data in C i can anyone > have a fav??? If anyone can give me some ideas on the best way to sort data > in C would be helpful.. Thanks Below is an example of how to use qsort. Hope it helps. /* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include #include #include #define NUM_INTS 15 void print_array(int *array) { int i; for (i = 0; i < NUM_INTS; i++) { printf("%d ", array[i]); } putc('\n', stdout); } int comp(int *a, int *b) { return (*a - *b); } void gen_rand(int *array) { int i; srand(time(NULL)); for (i = 0; i < NUM_INTS; i++) { array[i] = rand() % 99; } } int main(void) { int array[NUM_INTS]; gen_rand(array); print_array(array); qsort(&array, NUM_INTS, sizeof(*array), (int (*)(const void *, const void *)) comp); print_array(array); putc('\n', stdout); return 0; } -- L1: khromy ;khromy(at)lnuxlab.ath.cx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 6:20:51 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by hub.freebsd.org (Postfix) with ESMTP id 0604537B419 for ; Fri, 14 Jun 2002 06:20:48 -0700 (PDT) Received: from pr-webmail-1.demon.net ([194.159.244.51] helo=web.mail.demon.net) by anchor-post-32.mail.demon.net with smtp (Exim 3.35 #1) id 17Ir0N-0007fn-0W; Fri, 14 Jun 2002 14:20:43 +0100 Received: from ubik.demon.co.uk ([194.70.246.1]) by web.mail.demon.net with http; Fri, 14 Jun 2002 14:20:43 +0100 From: tony@ubik.demon.co.uk To: "Sergey Lyubka" Cc: hackers@freebsd.org In-Reply-To: <20020614100558.GA31152@loser.sporttime.net> Subject: Re: locore.s quiestion Date: Fri, 14 Jun 2002 14:20:43 +0100 User-Agent: Demon-WebMail/2.0 MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG devnull@uptsoft.com wrote: > > Oh, got it. > That's because of paging is set up. > Thanks Tony ! :-) > p.s. btw, btext executes in protected mode, not in real. Ooops, yes I got distracted. I intended to say something about this kind of strange code being commonly used when switching from real to protected mode. > since the link is up now, you can refer to the article , > that is described well there. Regards, Tony To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 11:40:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.comcast.net (smtp.comcast.net [24.153.64.2]) by hub.freebsd.org (Postfix) with ESMTP id B49E337B40A for ; Fri, 14 Jun 2002 11:40:07 -0700 (PDT) Received: from [192.168.123.138] (bgp935555bgs.brmngh01.mi.comcast.net [68.40.208.108]) by mtaout02.icomcast.net (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 13 2002)) with ESMTP id <0GXP00F3VL6UCV@mtaout02.icomcast.net> for hackers@freebsd.org; Fri, 14 Jun 2002 14:40:07 -0400 (EDT) Date: Fri, 14 Jun 2002 14:40:07 -0400 From: Dan Arlow Subject: Re: sorting in C In-reply-to: <20020614124530.GA16778@lnuxlab.ath.cx> To: hackers@freebsd.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dumb question: extra "&" in the previous post? why do both this > qsort(&array, NUM_INTS, sizeof(*array), > (int (*)(const void *, const void *)) comp); and this qsort(array, NUM_INTS, sizeof(*array), (int (*)(const void *, const void *)) comp); work properly? I tried both and both compile/run/sort fine. (the difference afaik is that the first passes an *int[] aka int** and the second passes an int[] aka int*) -dan (noob) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 12: 7:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smurf.jnielsen.net (12-254-136-47.client.attbi.com [12.254.136.47]) by hub.freebsd.org (Postfix) with ESMTP id 1D71437B42F for ; Fri, 14 Jun 2002 12:07:01 -0700 (PDT) Received: from max (max.local [192.168.0.9]) by smurf.jnielsen.net (8.12.3/8.12.3) with SMTP id g5EJAs1O000552; Fri, 14 Jun 2002 13:10:55 -0600 (MDT) (envelope-from hackers@jnielsen.net) Message-ID: <08a101c213d6$cc3500f0$0900a8c0@max> From: "John Nielsen" To: "Nielsen" Cc: References: <015301c2117d$0db539c0$0900a8c0@max> <20020614073101.13DA737B47A@hub.freebsd.org> Subject: Re: gif(4) tunnel through MSN DSL modem Date: Fri, 14 Jun 2002 13:07:58 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Nielsen" To: "John Nielsen" Cc: Sent: Friday, June 14, 2002 1:31 AM Subject: Re: gif(4) tunnel through MSN DSL modem > I have this working fine. On the BSD machine behind NAT the tunnel looks > like it's between a 192.168.x.x IP and the public IP of the machine across > the internet. On the remote machine it looks like a normal tunnel between > the two IPs. NAT takes care of the translation on the tunnel packets. That's good news! However, I'm not sure I can do the same in this case. > I've used gif tunnels, vtund, and even IPSEC in this configuration just > fine. Of course holes have to punched in NAT (bimap, port mapping or > whatever it's called on your DSL). That's for reliability and so that the > tunnel can be "initiated" from either end. Do you mean the NAT that the modem is doing? If so, that's a problem. I'm using an Arescom NetDSL 800 series modem, which comes "pre-configured per stringent specifications from MSN." And (as far as I know--and I've looked) there is no way for me to do any kind of configuration on it at all. If that weren't the case, I'd just put the thing in bridge mode and have done with it. If it were up to me, I'd switch to a sane ISP--but it's not up to me in this case. If I've misunderstood and you think this will work without being able to reconfigure the modem at all, then by all means please provide some more detail. :) JN > ----- Original Message ----- > From: "John Nielsen" > To: > Sent: Tuesday, June 11, 2002 13:20 > Subject: gif(4) tunnel through MSN DSL modem > > > > Hi folks, > > > > I tried this on -questions without any luck, so I'm hoping for a better > > response here . :) > > > > I remotely administer a FreeBSD 4.5 machine that is connected to the > > internet through and MSN DSL modem. This modem does NAT (for a single > > client) rather than bridging the connection. So the FreeBSD machine > thinks > > its public address is 192.168.1.2 (when in reality the modem is the only > > device with a public address). This machine is itself doing NAT, acting > as > > a firewall and gateway for a private network. > > > > I would like to establish a gif(4) tunnel between this machine and my > > firewall here in order to link the two private networks into one virtual > > network. I have done this before with two machines that were directly > > connected to the internet, but in this case the DSL modem on the far end > > seems to be fouling things up. The modem seems to be passing everything > > through, but I haven't gotten gif to work. > > > > Any ideas? Here's what I've tried--this is how I'd set it up if the DSL > > modem weren't in the way. > > > > [excerpts from rc.conf on far (DSL) end] > > # Private interface > > ifconfig_xl0="inet 192.168.6.1 netmask 255.255.255.0" > > # "Public" interface -- 192.168.1.2 netmask 255.255.255.252" > > ifconfig_ed0="DHCP" > > gif_interfaces="gif0" > > gifconfig_gif0="DSL.public.ip myend.public.ip" > > ifconfig_gif0="192.168.6.1 192.168.0.1" > > static_routes="john" > > route_john="-net 192.168.0 -interface gif0" > > > > [excerpts from rc.conf on this {my) end] > > # Private interface > > ifconfig_ep0="inet 192.168.0.1 netmask 255.255.255.0" > > # Public interface > > ifconfig_ed0="DHCP" > > gif_interfaces="gif0" > > gifconfig_gif0="myend.public.ip DSL.public.ip" > > ifconfig_gif0="192.168.0.1 192.168.6.1" > > static_routes="DSL" > > route_DSL="-net 192.168.6 -interface gif0" > > > > I've tried both the modem's (real) public address and 192.168.1.1 (the > > public interface's address) for DSL.public.ip, but neither seems to work. > > Can this be made to work? Can gif be hacked so it will work? > > > > I can't justify switching to a more expensive provider just so this tunnel > > will work, since it will mostly be a convenience for me and not the > client. > > As far as I know, there's no way to modify any settings on the DSL modem > > itself. I do have full access to both FreeBSD machines. Again, any > > suggestions or even a detailed description of why this won't work would be > > appreciated. > > > > Thanks, > > > > JN > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 15:36:24 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout09.sul.t-online.com (mailout09.sul.t-online.com [194.25.134.84]) by hub.freebsd.org (Postfix) with ESMTP id 2267037B407 for ; Fri, 14 Jun 2002 15:36:19 -0700 (PDT) Received: from fwd06.sul.t-online.de by mailout09.sul.t-online.com with smtp id 17Izg1-0005Ju-00; Sat, 15 Jun 2002 00:36:17 +0200 Received: from pc5.abc (520067998749-0001@[217.233.84.225]) by fmrl06.sul.t-online.com with esmtp id 17Izft-1E4luKC; Sat, 15 Jun 2002 00:36:09 +0200 Received: (from nicolas@localhost) by pc5.abc (8.11.6/8.11.6) id g5EMa8b16643 for hackers@FreeBSD.ORG; Sat, 15 Jun 2002 00:36:08 +0200 (CEST) (envelope-from list@rachinsky.de) Date: Sat, 15 Jun 2002 00:36:08 +0200 From: Nicolas Rachinsky To: hackers@FreeBSD.ORG Subject: Re: sorting in C Message-ID: <20020614223608.GA16612@pc5.abc> Mail-Followup-To: hackers@FreeBSD.ORG References: <20020614124530.GA16778@lnuxlab.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-Powered-by: FreeBSD X-Homepage: http://www.rachinsky.de X-PGP-Keyid: C11ABC0E X-PGP-Fingerprint: 19DB 8392 8FE0 814A 7362 EEBD A53B 526A C11A BC0E X-PGP-Key: http://www.rachinsky.de/nicolas/nicolas_rachinsky.asc X-Sender: 520067998749-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Dan Arlow [2002-06-14 14:40 -0400]: > dumb question: extra "&" in the previous post? > > why do both this > > qsort(&array, NUM_INTS, sizeof(*array), > > (int (*)(const void *, const void *)) comp); > and this > qsort(array, NUM_INTS, sizeof(*array), > (int (*)(const void *, const void *)) comp); > > work properly? I tried both and both compile/run/sort fine. > > (the difference afaik is that the first passes an *int[] aka int** and the > second passes an int[] aka int*) No, see http://www.eskimo.com/~scs/C-faq/q6.12.html Nicolas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 17:49:31 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E19B37B413 for ; Fri, 14 Jun 2002 17:49:27 -0700 (PDT) Received: from i8k.babbleon.org ([66.57.86.84]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Fri, 14 Jun 2002 20:49:24 -0400 Received: by i8k.babbleon.org (Postfix, from userid 111) id F275ABB2C; Fri, 14 Jun 2002 20:49:18 -0400 (EDT) Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: Nicolas Rachinsky , hackers@FreeBSD.ORG Subject: Re: sorting in C Date: Fri, 14 Jun 2002 20:49:18 -0400 X-Mailer: KMail [version 1.3] References: <20020614124530.GA16778@lnuxlab.ath.cx> <20020614223608.GA16612@pc5.abc> In-Reply-To: <20020614223608.GA16612@pc5.abc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020615004918.F275ABB2C@i8k.babbleon.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday 14 June 2002 06:36 pm, Nicolas Rachinsky wrote: | * Dan Arlow [2002-06-14 14:40 -0400]: | > dumb question: extra "&" in the previous post? | > | > why do both this | > | > > qsort(&array, NUM_INTS, sizeof(*array), | > > (int (*)(const void *, const void *)) comp); | > | > and this | > qsort(array, NUM_INTS, sizeof(*array), | > (int (*)(const void *, const void *)) comp); | > | > work properly? I tried both and both compile/run/sort fine. | > | > (the difference afaik is that the first passes an *int[] aka int** and | > the second passes an int[] aka int*) | | No, see http://www.eskimo.com/~scs/C-faq/q6.12.html I think that probably doesn't clarify much. (Indeed, in this case, it would seem to obfuscate the above question more than clarify since the question is "why are they the same" and the FAQ question is meant to explain why these two are *different* to somebody who expects them to be the *same.*) It's because an array *is* a pointer to the first element, and &array is a pointer to the array, but the first element has the same address as the array, since the address of the array is the address of the first element. Thus, the code works as long as the compiler will accept it. If qsort had a "typed" first element, then you'd get an error message from one or the other of them (though it would probably work), but as it happens, qsort declares the type to be void *, so it will take *any* pointer type. Thus, no complaint from the compiler. | | Nicolas | | To Unsubscribe: send mail to majordomo@FreeBSD.org | with "unsubscribe freebsd-hackers" in the body of the message -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org http://www.eff.org http://www.programming-freedom.org If you smell the smoke you don't need to be told what you've got to do; Yet there's a certain breed, so very in-between, they'd rather take a vote. -- DEVO -- Here To Go To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 18:18:19 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.noos.fr (verlaine.noos.net [212.198.2.73]) by hub.freebsd.org (Postfix) with ESMTP id C8DC637B404 for ; Fri, 14 Jun 2002 18:18:14 -0700 (PDT) Received: (qmail 19069668 invoked by uid 0); 15 Jun 2002 01:18:04 -0000 Received: from unknown (HELO gits.gits.dyndns.org) ([212.198.230.194]) (envelope-sender ) by 212.198.2.73 (qmail-ldap-1.03) with SMTP for ; 15 Jun 2002 01:18:04 -0000 Received: from gits.gits.dyndns.org (z151b7eun5wpt2cj@localhost [127.0.0.1]) by gits.gits.dyndns.org (8.12.3/8.12.3) with ESMTP id g5F1HsAX064517; Sat, 15 Jun 2002 03:17:56 +0200 (CEST) (envelope-from root@gits.dyndns.org) Received: (from root@localhost) by gits.gits.dyndns.org (8.12.3/8.12.3/Submit) id g5E7Gubl056059; Fri, 14 Jun 2002 09:16:56 +0200 (CEST) (envelope-from root) Date: Fri, 14 Jun 2002 09:16:56 +0200 From: Cyrille Lefevre To: echo dev Cc: hackers@freebsd.org Subject: Re: sorting in C Message-ID: <20020614071656.GA55926@gits.dyndns.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.99i Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[< List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 14, 2002 at 07:06:06AM +0000, echo dev wrote: > I am pooling in as many different ways of sorting data in C i can anyone > have a fav??? If anyone can give me some ideas on the best way to sort data > in C would be helpful.. Thanks is that references helping you ? qsort(3), bsearch(3), hsearch(3), lsearch(3), db(3). Cyrille. -- Cyrille Lefevre mailto:cyrille.lefevre@laposte.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 20:37:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from natto.numachi.com (natto.numachi.com [198.175.254.216]) by hub.freebsd.org (Postfix) with SMTP id 1BDF937B422 for ; Fri, 14 Jun 2002 20:37:13 -0700 (PDT) Received: (qmail 40695 invoked by uid 1001); 15 Jun 2002 03:37:11 -0000 Date: Fri, 14 Jun 2002 23:37:11 -0400 From: Brian Reichert To: hackers@freebsd.org Subject: Is CDIOCCAPABILITY appropraite for ATAPI devices? Message-ID: <20020614233711.F36847@numachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Is CDIOCCAPABILITY appropriate for ATAPI devices? The man page for cd(4) describes "ioctl(2) calls which apply to SCSI CD-ROM drives", some of which can also apply to APAPI CD-ROM drives. I've tried to use CDIOCCAPABILITY on my ATAPI DVD drive, but I can't tell if the error I get: "CDIOCCAPABILITY: Inappropriate ioctl for device" due to my wonky hardware, or me making a bad guess about it's applicability... Oh, and this is for 4.5-RELEASE... -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA Intel architecture: the left-hand path To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Jun 14 21:23:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mpls-qmqp-04.inet.qwest.net (mpls-qmqp-04.inet.qwest.net [63.231.195.115]) by hub.freebsd.org (Postfix) with SMTP id A266637B430 for ; Fri, 14 Jun 2002 21:23:43 -0700 (PDT) Received: (qmail 69964 invoked by uid 0); 15 Jun 2002 04:23:43 -0000 Received: from unknown (63.231.195.15) by mpls-qmqp-04.inet.qwest.net with QMQP; 15 Jun 2002 04:23:43 -0000 Received: from 216-161-217-6.customers.uswest.net (HELO niban.ccmt.net) (216.161.217.6) by mpls-pop-15.inet.qwest.net with SMTP; 15 Jun 2002 04:23:42 -0000 Date: Fri, 14 Jun 2002 22:20:44 -0600 Message-Id: <02061422204400.00686@niban.ccmt.net> From: "Casey T. Zednick" To: "John Nielsen" Cc: hackers@FreeBSD.ORG Content-Type: text/plain; charset="iso-8859-1" Reply-To: casey@ccmt.net Subject: Re: gif(4) tunnel through MSN DSL modem X-Mailer: KMail [version 1.2] References: <015301c2117d$0db539c0$0900a8c0@max> <20020614073101.13DA737B47A@hub.freebsd.org> <08a101c213d6$cc3500f0$0900a8c0@max> In-Reply-To: <08a101c213d6$cc3500f0$0900a8c0@max> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Do you mean the NAT that the modem is doing? If so, that's a problem. I'm > using an Arescom NetDSL 800 series modem, which comes "pre-configured per > stringent specifications from MSN." And (as far as I know--and I've > looked) there is no way for me to do any kind of configuration on it at > all. If that weren't the case, I'd just put the thing in bridge mode and > have done with it. > I have an MSN/Arescom setup too. It is using NAT: the gateway is 192.168.1.1 and the client is 192.168.1.2. However I read on the net that it is setup to portforward everythig from the gateway to the 192.168.1.2 address. I belive this to be true as I'm getting MS SQL and IIS hacks hitting my firewall. I guess it is time to hack their "stringent" pre-config ;-) -Casey -- This E-mail message was created with Open Source Software. Using: FreeBSD, http://www.freebsd.org KDE's KMail, http://www.kde.org Vist these sites and support O.S.S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 0: 8:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 4A00E37B40C; Sat, 15 Jun 2002 00:08:34 -0700 (PDT) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.3/8.12.3) with ESMTP id g5F78YCV029313; Sat, 15 Jun 2002 00:08:34 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.3/8.12.3/Submit) id g5F78YIh029312; Sat, 15 Jun 2002 00:08:34 -0700 (PDT) (envelope-from dillon) Date: Sat, 15 Jun 2002 00:08:34 -0700 (PDT) From: Matthew Dillon Message-Id: <200206150708.g5F78YIh029312@apollo.backplane.com> To: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Jellyfish shots from USENIX up Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I lazed out for Friday's sessions but I vowed to get a few good shots of the Monterey Bay Aquarium and after many shots and lots of post production I managed to salvage two (low light shots of transparent marine animals for which the autofocus does not work are difficult!). It's up at: http://apollo.backplane.com/USENIX2002/FriB/ -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 5:14:19 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp01.wxs.nl (smtp01.wxs.nl [195.121.6.61]) by hub.freebsd.org (Postfix) with ESMTP id 82C2A37B407 for ; Sat, 15 Jun 2002 05:14:15 -0700 (PDT) Received: from cybertron.kruijff ([213.10.151.186]) by smtp01.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id GXQXVP02.KIG; Sat, 15 Jun 2002 14:11:49 +0200 Date: Sat, 15 Jun 2002 14:12:16 +0200 From: Alex X-Mailer: The Bat! (v1.53d) Reply-To: Alex X-Priority: 3 (Normal) Message-ID: <9013366530.20020615141216@dds.nl> To: "Valery" Cc: freebsd-hackers@FreeBSD.org Subject: Re: offer In-Reply-To: <000001c21330$14cb4920$353e05c3@pc> References: <000001c21330$14cb4920$353e05c3@pc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello/Beste Valery, Friday, June 14, 2002, 1:14:00 AM, you wrote: V> Hi! V> My name is Valery Marchuk and I can help you, ofcource if you need it. I speak English, German, Russian and Ukrainian and can help in translation of handbook into these languages, besides, I`m a V> web-designer. V> If you are interested in my help V> e-mail me back and I`d be glad to help you V> valery_marchuk@we.de Hi valery, Help is always welcome. There's a special doc team who handles, among other things, the handbook. Please read the document at http://www.freebsd.org/docproj/index.html for more information -- Best regards/Met vriendelijke groet, Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 5:15:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from jangada.softinfo.com.br (BA000200.user.veloxzone.com.br [200.164.0.200]) by hub.freebsd.org (Postfix) with ESMTP id 94CC637B41D; Sat, 15 Jun 2002 05:15:50 -0700 (PDT) Received: from acaraje (acaraje.softinfo.com.br [192.168.10.2]) by jangada.softinfo.com.br (8.12.3/8.12.3) with SMTP id g5FCDK0l059974; Sat, 15 Jun 2002 09:13:21 -0300 (BRT) (envelope-from vitor@softinfo.com.br) Message-ID: <004b01c21466$81638d40$020aa8c0@acaraje> Reply-To: "Vitor de Matos Carvalho" From: "Vitor de Matos Carvalho" To: "FreeBSD-Questions" Cc: "FreeBSD-Hackers" Subject: CPU Temperature and MRTG Date: Sat, 15 Jun 2002 09:16:40 -0300 Organization: Softinfo Network MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi :)) It would like to know if somebody uses some program to measure the temperature of CPU (Intel) and motherboard, so that it can be read by the MRTG and thus to generate graphs? Atenciosamente, Vitor de Matos Carvalho System Network Administrator - Softinfo Network FreeBSD - The Power To Serve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 8:21:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from arcor.de (ACB1BCC7.ipt.aol.com [172.177.188.199]) by hub.freebsd.org (Postfix) with SMTP id E98C737B41B for ; Sat, 15 Jun 2002 08:18:13 -0700 (PDT) From: "todschick38259@arcor.de" To: Subject: Entschuldigen Sie bitte die Störung! Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Date: Sat, 15 Jun 2002 17:18:31 +0200 Reply-To: "todschick38259@arcor.de" Content-Transfer-Encoding: 8bit Message-Id: <20020615151813.E98C737B41B@hub.freebsd.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Entschuldigen Sie bitte die Störung! Mir ist etwas zu Ohren gekommen. Eine relativ aussergewöhnliche Gerüchteküche, aus der man mir ein schwerverdauliches Süppchen vorgesetzt hat, ist der Grund meiner Mail. Unappetitlich ist gar kein Ausdruck! Ist es möglich auf funktechnischem Wege(in welchen Frequenzbereichen?) jemanden zu beeinflussen oder zu manipulieren? Oder sogar zu schikanieren und terrorisieren? Unter dem Motto:"Einen am Sender?Nich ganz alleine? Kleine Mannim Ohr?Falsche Wellenlänge?Bohnen in den Ohren? Auf den Zahn gefühlt(Amalgam)?Mal unverbindlich reinhören? Der Pullacher Wanzentanz? Ist das Spinnerei?Das geht doch gar nicht,oder? Und wenn wie sieht das ethisch moralisch aus? Zur technischen Seite der Sache gibt es zwar Berichte und Webseiten: Totalitaer,de - Die Waffe gegen die Kritik http://www.fosar-bludorf.com/Tempelhof/ http://jya.com/haarp.htm http://www.zeitenschrift.at/magazin/zs_24_15/1_mikrowaffen.htm http://www.bse-plus.de/d/doc/lbrief/lbmincontr.htm http://home.nexgo.de/kraven/bigb/big3.html http://w3.nrl.navy.mil/projects/haarp/index.html http://cryptome.org/ http://www.parascope.com/ds/mkultra0.htm http://www.trufax.org/menu/mind.html http://www.trufax.org/menu/elect.html http://mindcontrolforum.com/ http://www.trufax.org/menu/elect.html usw. usw. usw. ,aber,das kann doch nicht sein,das soetwas gemacht wird,oder? Eine Menschenrechtsverletzung sonder gleichen!?! Ist es möglich,durch Präparation,der Ohren und im Zusammenspiel mit eventuell vorhandenem Zahnersatz? Mit relativ einfacher Funktechnik?? In diesem Land?Hier und heute??? Unter welchen Motiven? Wo ist eigentlich die Abteilung 5 des BND und des Verfassungsschutzes? Kann es sein,daß es Leute gibt,die dem BND/Verfassungsschutz,auf funktechnischem Wege permanent einen Situationsbericht abliefern,ohne es selbst zu merken,im Kindesalter machbar gemacht?? Werden durch solche inoffiziellen Mitarbeiter,beim BND und Verfassungsschutz,nach Stasimanier, Informationen von und über,rein theoretisch, jeden Bundesbürger,gesammelt? Gibt es dann noch ein Recht auf Privatsphere? Wer kontrolliert eigentlich den BND,MAD und Verfassungsschutz auf Unterwanderung??? In der Mail geht es mir eigentlich um die Frage,ob es kriminellen Elementen, aus dem Motiv der Bereicherung,oder Gruppierungen aus ideologischen Motiven, möglich ist ,sich Wissen und Technik anzueignen,die zu anderen Zeiten, aus anderen Motiven(Westfernsehen?),entwickelt wurde. Und stellt der technische Wissensstand, der der Allgemeinheit bekannt ist wirklich das Ende der Fahnenstange dar? Ist es denn nicht kriminellen Elementen genauso möglich, ich sage das jetzt mal verharmlost und verniedlichend, einzelne Personen oder Gruppen mit relativ einfachen Mitteln, aus welchen Motiven auch immer, auszuspionieren? Und stellt diese "Ausspioniererei" nicht einen erheblichen Eingriff in die Privatsphäre dar? Ist es möglich einzelne Personen oder Gruppen, eine Akzeptans einer gewissen Öffentlichkeit(suggeriert?), die z.B. mit Hilfe von Internetseiten,wie zum Beispiel dem "Pranger"geschaffen werden könnte, mal vorausgestzt,zu terroriesieren und oder zu schikanieren, und das in aller (suggerierten)Öffentlichkeit?Haben die Leute die da am Pranger, oder auf irgendeiner anderen Seite verunglimpft,oder gar Verleumdet werden, eigentlich eine Chance zur Gegenöffentlichkeit?Ist das nicht Rufmord? Vor einigen Jahren bin ich per Zufall auf die Seite "Der Pranger" gestoßen, damals lief das noch nicht unter dem Deckmantel der Partnervermittlung. Können sich einzelne Personen,oder Interessengemeinschaften, aus reinem Selbstzweck,solcher Seiten bedienen, um unter dem Deckmantel einer fragwürdigen Zivilkourage, durch anzetteln irgendwelcher Hetzkampagnen,eigene, ganz persöhnliche Interessen durchsetzen? Können solche Seiten zur Koordination von kriminellen machenschaften dienen? Die Frage,ist es Möglichkeit oder Unmöglichkeit,technisch und gesellschaftlich, einzelne Personen,oder auch Gruppierungen,aus einer kriminellen/ideologischen Energei heraus,zu manipulieren oder zu beeinflussen,terrorisieren oder zu schickanieren,und zwar gezielt. Zielgruppenmanipulation durch Massenmedien sind alltägliche Manipulation, der mansich,mehr oder weniger,entziehen kann. Wird das Recht auf Privatsphäre,schleichend,tiefenpsychologisch, durch Sendungen,wie,zum Beispiel "Big brother",untergraben? Sollte bei einem der Angemailten ein gewisser Wissensstand zum Thema vorhanden sein, wäre ich über Hinweise zum Thema froh. Auf der Suche nach Antworten auf meine Fragen maile ich verschiedene Adressen aus dem Internet an, und hoffe aufkonstruktive Antworten und Kritiken. Über einen Besuch auf der Seite würde ich mich freuen. Sollten Sie von mir mehrfach angeschrieben worden sein,so bitte ich Sie,mir dies zu entschuldigen, das war nicht beabsichtigt. Der Grund für meine Anonymität ist die Tatsache, daß bei derlei Fragenstellerei, verständlicherweise,schnell der Ruf nach der Psychatrie laut wird. Was auch Methode hat(ist). Sollten Sie die Mail als Belästigung empfinden, möchte ich mich hiermit dafür entschuldigen! Big brother is watching you? Excuse please the disturbance! Me something came to ears. A relatively unusual rumor kitchen, from which one put forward to me a heavydigestible soup, is the reason of my Mail. Unappetizing is no printout! Is it possible on radio Wege(in for which frequency ranges?) to influence or manipulate someone? Terrorize or to even chicane and? Under the Motto:"Einen at the Sender?Nich quite alone? Small Mannim Ohr?Fal Wellenlaenge?Bohnen in the ears? On the tooth clean-hear gefuehlt(Amalgam)?Mal witthout obligation? The Pullacher bug wanzentanz? Isn't the Spinnerei?Das goes nevertheless at all, or? And if as looks ethicalally morally? For the technical page of the thing there is to report and web page: Totalitaer,de - Die Waffe gegen die Kritik http://www.fosar-bludorf.com/Tempelhof/ http://jya.com/haarp.htm http://www.zeitenschrift.at/magazin/zs_24_15/1_mikrowaffen.htm http://www.bse-plus.de/d/doc/lbrief/lbmincontr.htm http://home.nexgo.de/kraven/bigb/big3.html http://w3.nrl.navy.mil/projects/haarp/index.html http://cryptome.org/ http://www.parascope.com/ds/mkultra0.htm http://www.trufax.org/menu/mind.html http://www.trufax.org/menu/elect.html http://mindcontrolforum.com/ http://www.trufax.org/menu/elect.html usw. usw. usw. but, that cannot be nevertheless, which is made soetwas, or? A violation of human rights resemble special!?! Is it possible, by preparation, the ears and in interaction with possibly available artificial dentures? With relatively simple radio engineering?? In this Land?Hier and today??? Under which motives? Where is the department actually 5 of the BND and the protection of the constitution? Can it be that there are people, which deliver the Federal Intelligence Service/protection of the constitution, on radio way permanently a situation report, without noticing it, in the infancy feasiblly made? By such unofficial coworkers, with the BND and protection of the constitution, after Stasimanier, is information collected of and over,purely theoretically, each Federal citizen? Is there then still another right to Privatsphere? Who actually checks the BND, WAD and protection of the constitution for infiltration??? Into the Mail actually concerns it to me the question whether it criminal items, from which motive of enriching, or groupings from ideological motives is possible, to acquire itself knowledge and technique which were developed at other times, from other Motiven(Westfernsehen?).And does the technical knowledge status place, to that the public admits is really the end of the flag bar? Is it not to criminal items just as possible, I legend that now times played down and does nice-end, individual persons or groups with relatively simple means, to spy from whatever motives always? And doesn't this " Ausspioniererei " represent a substantial intervention into the privatsphaere? It is possible individual persons or groups, one acceptance to of a certain Oeffentlichkeit(suggeriert?), e.g. by Internet pages, how for example the " Pranger"geschaffen could become, times vorausgestzt, to terroriesieren and or chicane, and in everything (the people suggerierten)Oeffentlichkeit?Haben there at the Pranger, or on any other page to be reviled, or slandered, actually a chance to the Gegenoeffentlichkeit?Ist that not character assassination? Some years ago I am by coincidence the page " the Pranger " encountered, at that time ran not yet under the cover of the partner switching.Itself can individual persons, or communities of interests, from pure self purpose, such pages to serve, over under the cover of a doubtful Zivilkourage, through plot any rushing campaigns, own, quite persoehnliche interests to intersperse? Can such pages serve for the co-ordination of criminal machinations? The question, is it possibility or impossibility, technically and socially, individual persons, or also groupings of manipulating or of influencing from an criminal/ideological Energei, terrorizes or to schickanieren, directed.Target group manipulation by mass media are everyday manipulation, from which, more or less, can extract itself. Does the right to privatsphaere, creeping, by transmissions become deep psychological, how, for example " Big undermine brother"? If the Angemailten should be available a certain knowledge status to the topic with one, I would be glad over notes to the topic On the search for responses to my questions maile I different addresses from the Internet on, and hope up-constructional responses and criticisms.Over an attendance on the page wuerde I are pleased.If you should have been written down by me several times, then please I you to excuse me this that was not intended. The reason for my anonymity is the fact that with such Fragenstellerei, understandably, fast after the call the Psychatrie loud becomes. Which also method hat(ist). If you should feel the Mail as annoyance, I would like to apologize hereby for it! Big is watching you? Veuillez excuser le dérangement! Moi quelque chose concernant des oreilles est venu. Une cuisine de bruit relativement inhabituelle, dont on m'a placé un Sueppchen schwerverdauliches devant, est la raison de mes Mail.Aucune expression n'est peu appétissante! Il est possible sur un Wege(in funktechnischem pour quelles réponses fréquentielles?) quelqu'un influencer ou manipuler? Ou même schikanieren et terroriser? Sous le Motto:"Einen au Sender?Nich tout à fait seulement? Petits Mannim Ohr?Falsche Wellenlaenge?Bohnen dans les oreilles? Sur la dent gefuehlt(Amalgam)?Mal non contraignant reinhoeren? Le Pullacher Wanzentanz? Le Spinnerei?Das n'est-il quand même pas du tout va, ou? Et si comme cela paraît éthiquement moralement? Au côté technique de la chose, il y a certes des rapports et des Webseiten: Totalitaer,de - Die Waffe gegen die Kritik http://www.fosar-bludorf.com/Tempelhof/ http://jya.com/haarp.htm http://www.zeitenschrift.at/magazin/zs_24_15/1_mikrowaffen.htm http://www.bse-plus.de/d/doc/lbrief/lbmincontr.htm http://home.nexgo.de/kraven/bigb/big3.html http://w3.nrl.navy.mil/projects/haarp/index.html http://cryptome.org/ http://www.parascope.com/ds/mkultra0.htm http://www.trufax.org/menu/mind.html http://www.trufax.org/menu/elect.html http://mindcontrolforum.com/ http://www.trufax.org/menu/elect.html usw. usw. usw. toutefois qui ne peut quand même pas être qui on fait soetwas, ou? Une violation des droits de l'homme séparer ressembler!?! Il est possible, par la préparation, des oreilles et dans l'effet avec la prothèse dentaire éventuellement existante? Avec la technique de radio relativement simple?? Dans ce Land?Hier et aujourd'hui Sous quels motifs? Où le département est-il en réalité 5 du BND et de la protection d'constitution? peut il être qu'il y a les personnes qui livrent en permanence le BND/Verfassungsschutz, de manière funktechnischem un rapport de situation, sans le remarquer le -même , dans l'enfance rendu possible?? Par de tels collaborateurs officieux, avec le BND et la protection d'constitution, après manière, des informations sont-elles rassemblées et plus de, purement théoriquement, chaque citoyen allemand? Il y a alors encore un droit à des Privatsphere? Qui contrôle en réalité le BND, mad et protection d'constitution sur une infiltration??? Il s'agit en réalité dans le Mail me la question de savoir si lui éléments criminels, dont le motif de l'enrichissement, ou de groupements des motifs idéologiques, possible de s'acquérir le savoir et la technique qui à d'autres temps, est autre MotivenEt place-t-il le savoir technique dont le public vraiment la fin la barre de drapeau a connaissance ? Il n'est pas donc exactement la même chose possible pour des éléments criminels, moi cela maintenant fois verharmlost et minimisant une légende, personnes ou groupes particuliers avec des moyens relativement simples, de quels motifs aussi toujours, auszuspionieren?(Westfernsehen?), a été développé. Et ce "Ausspioniererei" ne représente-t-il pas une intervention considérable dans la vie privée? Il est possible personnes ou groupes particuliers, pour certain Oeffentlichkeit(suggeriert?), celui p. ex. à l'aide des côtés Internet, comme par exemple "le Pranger"geschaffen pourrait, fois vorausgestzt schikanieren terroriesieren et ou , et qui toute (suggerierten)Oeffentlichkeit?Haben les personnes ceux là, ou d'un autre côté verunglimpft, ou on ne pas calomnie, en réalité une chance au Gegenoeffentlichkeit?Ist qui meurtre d'appel? Il y a quelques années, je ne suis pas encore par hasard sur le côté "celui" poussé, fonctionnais alors cela sous la couche de pont de l'entremise partenaire. Des personnes particulières, ou des communautés d'intérêts le peuventelles, d'un autobut pur, de tels côtés servent, sous la couche de pont d'un Zivilkourage douteux, tracent plus de des campagnes de précipitation, propres intérêts tout à fait persoehnliche entremêlent? De tels côtés peuvent-ils servir à la coordination des manoeuvres criminelles? Question, est lui possibilité ou impossibilité de manipuler ou d'influencer techniquement et socialement, particulière personnes, ou aussi groupements, criminelle/ponctuel idéologique Energei dehors, , terroriser ou schickanieren, et ce.Une manipulation de groupe cible par des masse-médias être la manipulation quotidienne qui peut extraire mansich, plus ou moins. Le droit à la vie privée est-il miné, ramment, tiefenpsychologisch, par des envois, comme, par exemple "des Big brother"? Avec un les Angemailten si un certain savoir devait exister sur le thème, je serais heureux sur des indications sur le thème.Sur la recherche des réponses à mes questions je différentes adresses maile d'Internet dessus, et espère réponses et critiques aufkonstruktive. Sur une visite du côté http://hometown.aol.de/reinerhohn38259/homepage/index.html> je me réjouirais. Si vous deviez avoir été écrit à différentes reprises par moi, je vous demande de m'excuser cela qui n'était pas envisagé. La raison de mon anonymat est le fait qu'avec telle des Fragenstellerei, l'appel devient ce qui est bien compréhensible, rapidement bruyant après le Psychatrie. Ce que la méthode a également (ist). Si vous deviez ressentir les Mail comme un ennui, je voudrais m'excuser par ceci pour cela! Big brother is watching you? Könnte mir jemand bei der korrekten Überstzung helfen? Could someone help me with the correct translation? Quelqu'un pourrait-il m'aider lors du Ueberstzung correct? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 8:29:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from newsguy.com (smtp.newsguy.com [216.148.53.71]) by hub.freebsd.org (Postfix) with ESMTP id 954E437B409; Sat, 15 Jun 2002 08:29:35 -0700 (PDT) Received: from newsguy.com (200-181-082-171-cbace202.dial.telebrasilia.net.br [200.181.82.171]) by newsguy.com (8.9.1a/8.9.1) with ESMTP id IAA61149; Sat, 15 Jun 2002 08:29:12 -0700 (PDT) Message-ID: <3D0B5CA9.46E03003@newsguy.com> Date: Sat, 15 Jun 2002 12:26:33 -0300 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en,pt-BR,pt,en-GB,en-US,ja MIME-Version: 1.0 To: Vitor de Matos Carvalho Cc: FreeBSD-Questions , FreeBSD-Hackers Subject: Re: CPU Temperature and MRTG References: <004b01c21466$81638d40$020aa8c0@acaraje> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Vitor de Matos Carvalho wrote: > > Hi :)) > > It would like to know if somebody uses some program to measure the > temperature of CPU (Intel) and motherboard, so that it can be read by the > MRTG and thus to generate graphs? Mmmmmm. I'm particularly familiar with the APCI code nowadays, but it would surprise me if there wasn't SOME command which returns the current temperature. In that case, net-snmp can easily do the job, even if not with the correct MIB (it can do the job with the correct MIB too, just not easily), through it's exec feature. > > Atenciosamente, > Vitor de Matos Carvalho > System Network Administrator - Softinfo Network > FreeBSD - The Power To Serve > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@international.bsdconspiracy.net "They did what they could to help her, using human skills -- and then, when that failed, left it in the hands of the gods. In this case," he bowed slightly, "myself. Like it or not," the demon continued, "that is my status in this region. Take it up with my priests if it bothers you." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 8:52:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns3.safety.net (ns3.safety.net [216.40.201.32]) by hub.freebsd.org (Postfix) with ESMTP id 6802E37B42A; Sat, 15 Jun 2002 08:52:53 -0700 (PDT) Received: (from les@localhost) by ns3.safety.net (8.10.2/8.10.2) id g5FFqnb19714; Sat, 15 Jun 2002 08:52:49 -0700 From: Les Biffle Message-Id: <200206151552.g5FFqnb19714@ns3.safety.net> Subject: Re: CPU Temperature and MRTG In-Reply-To: <3D0B5CA9.46E03003@newsguy.com> To: "Daniel C. Sobral" Date: Sat, 15 Jun 2002 08:52:49 -0700 (MST) Cc: Vitor de Matos Carvalho , FreeBSD-Questions , FreeBSD-Hackers X-Mailer: ELM [version 2.4ME+ PL94 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Vitor de Matos Carvalho wrote: > > > > Hi :)) > > > > It would like to know if somebody uses some program to measure the > > temperature of CPU (Intel) and motherboard, so that it can be read by the > > MRTG and thus to generate graphs? Check out healthd. (http://healthd.thehousleys.net/) On the main website, he gives examples of using MRTG to do this. Whether healthd can talk to your mobo chipset is another matter. Regards, -Les -- Les Biffle (480) 585-4099 les@safety.net http://www.les.safety.net/ Network Safety Corp., 5831 E. Dynamite Blvd., Cave Creek, AZ 85331 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 10:34:19 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.bu.edu (cs.bu.edu [128.197.12.2]) by hub.freebsd.org (Postfix) with ESMTP id 57F2237B40F for ; Sat, 15 Jun 2002 10:34:15 -0700 (PDT) Received: from csa.bu.edu (evms@csa [128.197.12.3]) by cs.bu.edu (8.12.2/8.12.2) with ESMTP id g5FHYEF2027467 for ; Sat, 15 Jun 2002 13:34:14 -0400 (EDT) Received: (from evms@localhost) by csa.bu.edu (8.10.1/8.10.1) id g5FHYBs26505; Sat, 15 Jun 2002 13:34:11 -0400 (EDT) Date: Sat, 15 Jun 2002 13:34:11 -0400 (EDT) Message-Id: <200206151734.g5FHYBs26505@csa.bu.edu> From: Evan Sarmiento To: hackers@freebsd.org Subject: CHN_LOCK() Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I keep on getting debug messages like this, both at startup and right before any sound plays: Jun 14 23:44:38 teqnix kernel: /usr/src/sys/vm/uma_core.c:1327: could sleep with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:713 heyeh, Jun 14 23:44:38 teqnix kernel: /usr/src/sys/vm/uma_core.c:1327: could sleep with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:713 Jun 14 23:44:38 teqnix kernel: /usr/src/sys/vm/uma_core.c:1327: could sleep with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:713 Jun 14 23:44:38 teqnix kernel: /usr/se.c:1327: could sleep with "pcm0:play:0" lo cked from /usr/src/sys/dev/sound/pcm/dsp.c:713 Jun 14 23:44:38 teqnix kernel: /usr/src/sys/vm/uma_core.c:1327: could sleep with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:713 Jun 14 23:44:38 teqnix kernel: /usr/src/sys/vm/uma_core.c:1327: could sleep with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:713 To avoid this, I was wondering if I could change CHN_LOCK() to use spin locks instead of sleeping mutex locks? Of course I would make it so that mtx_init has RECURS.. would this work? - Evan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 11: 6:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id A517837B404 for ; Sat, 15 Jun 2002 11:06:27 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1920) id 4D324AE165; Sat, 15 Jun 2002 11:06:27 -0700 (PDT) Date: Sat, 15 Jun 2002 11:06:27 -0700 From: Maxime Henrion To: hackers@FreeBSD.org Cc: Evan Sarmiento Subject: Re: CHN_LOCK() Message-ID: <20020615180627.GO85244@elvis.mu.org> References: <200206151734.g5FHYBs26505@csa.bu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200206151734.g5FHYBs26505@csa.bu.edu> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Evan Sarmiento wrote: > I keep on getting debug messages like this, both at startup > and right before any sound plays: > > Jun 14 23:44:38 teqnix kernel: /usr/src/sys/vm/uma_core.c:1327: could > sleep with > "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:713 > heyeh, Jun 14 23:44:38 teqnix kernel: /usr/src/sys/vm/uma_core.c:1327: could > sleep with > "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:713 [...] > To avoid this, I was wondering if I could change CHN_LOCK() to use > spin locks instead of sleeping mutex locks? Of course I would > make it so that mtx_init has RECURS.. would this work? This debugging messages appear because some code calls malloc() without the M_NOWAIT flags, so if memory is not available right now, the code may sleep while holding the lock which is bad. Changing the type of the mutex to a spin mutex would not fix anything, and would make things a lot worse. You need to change the code so that it calls malloc() earlier, while it's not holding any lock, or unlock before calling malloc(), relock and deal with the race condition if it's possible. Calling malloc() with M_NOWAIT isn't a good fix as well, because there is no reason to make this code fail if memory if not available at the moment, and not have it sleep for it instead. M_NOWAIT should only be used while in interrupt context, as far as I know. Maxime To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 12:46:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id D6E6C37B404; Sat, 15 Jun 2002 12:46:53 -0700 (PDT) Received: from pool0289.cvx22-bradley.dialup.earthlink.net ([209.179.199.34] helo=mindspring.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17JJVd-0007ct-00; Sat, 15 Jun 2002 12:46:53 -0700 Message-ID: <3D0B9988.4A34CE@mindspring.com> Date: Sat, 15 Jun 2002 12:46:16 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Maxime Henrion Cc: hackers@FreeBSD.org, Evan Sarmiento Subject: Re: CHN_LOCK() References: <200206151734.g5FHYBs26505@csa.bu.edu> <20020615180627.GO85244@elvis.mu.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Maxime Henrion wrote: > Calling malloc() with M_NOWAIT isn't a good fix as well, because there > is no reason to make this code fail if memory if not available at the > moment, and not have it sleep for it instead. M_NOWAIT should only be > used while in interrupt context, as far as I know. The mbuf allocation code implies this in all cases, not just the interrupt case. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 14:18:54 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from priv-edtnes03-hme0.telusplanet.net (fepout1.telus.net [199.185.220.236]) by hub.freebsd.org (Postfix) with ESMTP id EDACE37B428 for ; Sat, 15 Jun 2002 14:18:49 -0700 (PDT) Received: from a7a42593 ([64.180.205.214]) by priv-edtnes03-hme0.telusplanet.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20020615211849.BTVH22641.priv-edtnes03-hme0.telusplanet.net@a7a42593> for ; Sat, 15 Jun 2002 15:18:49 -0600 To: freebsd-hackers@freebsd.org From: Tyler Spivey Reply-To: Tyler Spivey Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Subject: sbc audio driver - buffering Message-Id: <20020615211849.BTVH22641.priv-edtnes03-hme0.telusplanet.net@a7a42593> Date: Sat, 15 Jun 2002 15:18:49 -0600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG how would i go about changing the sbc audio driver so it acts like linux's oss drivers?: when i use sox to play a file under linux, i can hit ^c at any time and it stops, bang. under freebsd, i hit ^c and it waits for a while. this is probably because of buffering under freebsd, but i do want fast responces to the interrupt signal, so how can i get this under freebsd? I'm running 4.5-R, p200, 64 mb of ram, and an awe64 card. I also have a cmi8738 in the same machine, but i don't like it much. (aopen aw-848 or something). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Jun 15 21:29:57 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dove.penix.org (dove.penix.org [216.144.7.82]) by hub.freebsd.org (Postfix) with ESMTP id 27D0837B404 for ; Sat, 15 Jun 2002 21:29:54 -0700 (PDT) Received: from dove.penix.org (dp@localhost.nls.net [127.0.0.1]) by dove.penix.org (8.12.2/8.12.2) with ESMTP id g5G4TlOd018489 for ; Sun, 16 Jun 2002 00:29:48 -0400 (EDT) (envelope-from dp@dove.penix.org) Received: from localhost (dp@localhost) by dove.penix.org (8.12.2/8.12.2/Submit) with ESMTP id g5G4TlIE018486 for ; Sun, 16 Jun 2002 00:29:47 -0400 (EDT) (envelope-from dp@dove.penix.org) Date: Sun, 16 Jun 2002 00:29:46 -0400 (EDT) From: Paul Halliday To: hackers@freebsd.org Subject: freebsd<-802.11b->linux Message-ID: <20020616002202.R18485-100000@dove.penix.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi. I was just wondering if anyone else has experienced crashes due to attempting to connect a linux box to fbsd via a wireless nic. Quite sad actually that an ipaq can crash a fbsd or obsd box while it scans in infrastructure mode. Anyone have any ideas? the only solution as of yet is to literally remove the wireless card from the bsd box until the ipaq has been properly configured to work Ad-hoc. However upon a suspend/resume the ipaq easilly takes the machine offline again. Thanks Paul H. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message