From owner-freebsd-hackers@FreeBSD.ORG Sat May 1 07:19:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE9B916A4CE for ; Sat, 1 May 2004 07:19:37 -0700 (PDT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FBE843D45 for ; Sat, 1 May 2004 07:19:37 -0700 (PDT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (pD9E4D6F8.dip.t-dialin.net [217.228.214.248]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id i41EJXr8042519; Sat, 1 May 2004 16:19:34 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.9p2/8.12.9) with ESMTP id i41EJXL7002786; Sat, 1 May 2004 16:19:33 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost [127.0.0.1]) by fire.jhs.private (8.12.9p2/8.12.9) with ESMTP id i41EJXYO081161; Sat, 1 May 2004 16:19:33 +0200 (CEST) (envelope-from jhs@fire.jhs.private) Message-Id: <200405011419.i41EJXYO081161@fire.jhs.private> To: "J.-P. Klodzinski" In-Reply-To: Message from Andrew Gordon <20040430223724.U98295@server.arg.sj.co.uk> Date: Sat, 01 May 2004 16:19:32 +0200 From: "Julian H. Stacey" X-Mailman-Approved-At: Sun, 02 May 2004 05:03:27 -0700 cc: freebsd-hackers@freebsd.org Subject: Re: Accessing (the i4b) device driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 14:19:38 -0000 Andrew Gordon wrote: > On Fri, 30 Apr 2004, Martin Moeller wrote: > > > > I'm totally new to FreeBSD programming, so please forgive my troll-like > > question! I'd like to write a nifty little program showing if somebody is > > calling me via an ISDN line. In the far future, the program should show the > > caller's telephone number. For (guessed) 5 years it's shown me Name of all(*) callers, not just number ! I use xterm, tail -f, grep, & the log file. I added the number to name code years back, 'cos I can't remember numbers. Try man isdnd (*) callers from analogue lines show as "not available" BTW The correct list for deep isdn issues is not hackers@ but isdn@ (but this easy question might be happy on questions@ :-) - Julian Stacey. Unix C & Net Services Consultant - Munich. http://berklix.com Mail in Ascii text/plain: Html + Mime dumped as Spam. Schnupftabak probieren: Ihr Rauchen = mein allergischer Kopfschmerz ! VCF Europa 5.0 am 01./02. Mai 2004 in Muenchen http://www.vcfe.org/ From owner-freebsd-hackers@FreeBSD.ORG Sun May 2 07:50:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06D0016A4CE for ; Sun, 2 May 2004 07:50:23 -0700 (PDT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FBAB43D2F for ; Sun, 2 May 2004 07:50:22 -0700 (PDT) (envelope-from ritalin@comcast.net) Received: from emachine (pcp04418869pcs.nrockv01.md.comcast.net[69.140.111.25]) by comcast.net (sccrmhc12) with SMTP id <2004050214502001200njbnve>; Sun, 2 May 2004 14:50:20 +0000 Message-ID: <004c01c43053$2a775920$9402a8c0@emachine> From: "Rita Lin" To: Date: Sun, 2 May 2004 10:38:42 -0400 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: USB device driver question: timeout() and usbd_do_request() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2004 14:50:23 -0000 Hello, I'm writing a USB driver for a device that does not have any interrupt. = It only has Bulk-in and Bulk-out. A periodic polling status from default = pipe is required to have a smooth data transfer. I used timeout() = routine to call usbd_do_request() for polling. I thought maybe timeout() = is called under interrupt context, since usbd_do_request() access system = I/O, it crashes. However, by adding this timeout() in ucomstart(), it = didn't crash until the third call to timeout(). Removing = usbd_do_request() allows the timeout() to work without any problem. From = the USB analyzer, I could see that even if the system crashed, a request = was sent to the USB device correctly. There are two crashdump messages = printed out to the screen, I could only catch the second one. The first = one scrolled off the screen too fast. By counting the byte and the = instruction pointer, the routine crashed in acquire_lock(). I 'greped' = the kernel source code, didn't see this routine. I know I'm missing some important FreeBSD concept since I'm new to it, = by reading related document did not reveal anything that might help me. = If usbd_do_request() should never be used in timeout() as a callback = routine, what other options do I have, to implement a status-polling = scheme?=20 Thank you very much in advance. Rita From owner-freebsd-hackers@FreeBSD.ORG Sun May 2 09:09:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 145A316A4CE for ; Sun, 2 May 2004 09:09:11 -0700 (PDT) Received: from tyr.systh.org (c171093.adsl.hansenet.de [213.39.171.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 006C343D54 for ; Sun, 2 May 2004 09:08:59 -0700 (PDT) (envelope-from mm@tyr.systh.org) Received: from tyr.systh.org (localhost [127.0.0.1]) by tyr.systh.org (8.12.11/8.12.11) with ESMTP id i42G8o5n090132 for ; Sun, 2 May 2004 18:08:50 +0200 (CEST) (envelope-from mm@tyr.systh.org) Received: (from mm@localhost) by tyr.systh.org (8.12.11/8.12.11/Submit) id i42G8oV0090131 for freebsd-hackers@freebsd.org; Sun, 2 May 2004 18:08:50 +0200 (CEST) (envelope-from mm) Date: Sun, 2 May 2004 18:08:50 +0200 From: Martin Moeller To: freebsd-hackers@freebsd.org Message-ID: <20040502160850.GA83455@tyr.systh.org> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20040430223724.U98295@server.arg.sj.co.uk> <200405011419.i41EJXYO081161@fire.jhs.private> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200405011419.i41EJXYO081161@fire.jhs.private> X-Homepage: http://www.systh.org/ X-OS: FreeBSD 4.9 STABLE (RELENG_4) http://www.freebsd.org/ X-Uptime: 5:48pm up 39 mins, 2 users, load averages: 0,09 0,17 0,34 User-Agent: Mutt/1.5.6i Subject: Re: Accessing (the i4b) device driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2004 16:09:11 -0000 * Julian H. Stacey [02052004 17:14] > BTW The correct list for deep isdn issues is not hackers@ but isdn@ > (but this easy question might be happy on questions@ :-) Hi everybody, thank you very much for your answers concerning showing an ISDN caller's ID. I'm using Bjoern Zeeb's approach at the moment and it works good, but I'm still obsessed by the idea of a nifty little Gnome panel applet showing me the phone number of a caller. Julian, You're absolutely correct: Questions concerning the configuration and use of ISDN belong to @questions or @isdn. BUT: The thing I actually asked was how to communicate with a device driver (in this case: i4b's) to get the job done with a C program. Luckily (thanks to Gerald Heinig) I've been directed to the source code of isdnd to see how things are done there. But I guess understanding such a complex program as this takes a while. *sigh* :( It seems as if my little gnome program has to wait a little... So, thanks again for all your answers and sorry! if this was the wrong list to post to. Regards, Martin From owner-freebsd-hackers@FreeBSD.ORG Sun May 2 16:27:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6245D16A4CE for ; Sun, 2 May 2004 16:27:15 -0700 (PDT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49BE643D1D for ; Sun, 2 May 2004 16:27:15 -0700 (PDT) (envelope-from befree_fr@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i42NREeg028502 for ; Sun, 2 May 2004 16:27:14 -0700 (PDT) Received: from [192.168.1.10] (anantes-105-1-1-27.w81-250.abo.wanadoo.fr [81.250.3.27]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 3.0) with ESMTP id i42NRD3Z012957 for ; Sun, 2 May 2004 16:27:13 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v613) Content-Transfer-Encoding: 7bit Message-Id: <3D7AE33C-9C90-11D8-AB12-000A95AFBEFA@mac.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: Hackers FreeBSD From: Thierry DELHAISE Date: Mon, 3 May 2004 01:27:12 +0200 X-Mailer: Apple Mail (2.613) Subject: Enumerating devices and hardware conf from userland X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2004 23:27:15 -0000 Hi all, Sorry first if my question seems stupid : I'm new in the FreeBSD Kernel design and so don't know all interfaces of the kernel in user land. I'm developping a tool running in userland (root) (a command line tools) for enumerating all devices present on the machine : This tool must scan all hardware buses : pci, but usb, firewire, ide, etc.... and retreive devices states : configure, not configured, handle by a driver, not handle by a driver, witch modules is the driver. And I want to have all devices present inside a machine. In some recent Kernel, there is a way from userland, to take a handle from the root hardware tree, enumeratiing first buses, and under buses, witch device are connect to those buses. This is is what I am looking for. How to do this under FreeBSD ? THX in advance for your help, advice, comment. Thierry From owner-freebsd-hackers@FreeBSD.ORG Sun May 2 17:53:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 467AF16A4CE for ; Sun, 2 May 2004 17:53:48 -0700 (PDT) Received: from huva.hittite.isp.9tel.net (huva.hittite.isp.9tel.net [62.62.156.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id B330343D31 for ; Sun, 2 May 2004 17:53:47 -0700 (PDT) (envelope-from clefevre-lists@9online.fr) Received: from pc2k (22-61-118-80.kaptech.net [80.118.61.22]) by huva.hittite.isp.9tel.net (Postfix) with SMTP id C4E009BB3D; Mon, 3 May 2004 02:55:00 +0200 (CEST) Message-ID: <002501c430a9$1723b980$7890a8c0@dyndns.org> From: "Cyrille Lefevre" To: "Hackers FreeBSD" , "Thierry DELHAISE" References: <3D7AE33C-9C90-11D8-AB12-000A95AFBEFA@mac.com> Date: Mon, 3 May 2004 02:53:46 +0200 Organization: ACME 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.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Re: Enumerating devices and hardware conf from userland X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 00:53:48 -0000 "Thierry DELHAISE" wrote: > I'm developping a tool running in userland (root) (a command line > tools) for enumerating all devices present on the machine : take a look at http://www.magnicomp.com/sysinfo/ first :) Cyrille Lefevre. -- home: mailto:cyrille.lefevre@laposte.net From owner-freebsd-hackers@FreeBSD.ORG Sun May 2 18:12:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ADCB16A4CE for ; Sun, 2 May 2004 18:12:20 -0700 (PDT) Received: from wolf.bytecraft.au.com (wolf.bytecraft.au.com [203.39.118.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E087243D48 for ; Sun, 2 May 2004 18:12:17 -0700 (PDT) (envelope-from murraytaylor@bytecraftsystems.com) Received: from svmarshal.bytecraft.au.com ([10.0.0.4]) by wolf.bytecraft.au.com (8.12.9/8.12.9) with ESMTP id i431C5TG065517; Mon, 3 May 2004 11:12:05 +1000 (EST) (envelope-from murraytaylor@bytecraftsystems.com) Received: from wombat.bytecraft.au.com (Not Verified[10.0.0.3]) by svmarshal.bytecraft.au.com with MailMarshal (v5,0,3,78) id ; Mon, 03 May 2004 11:12:06 +1000 Received: from [10.0.17.42] (wstaylorm.dand06.au.bytecraft.au.com [10.0.17.42]) by wombat.bytecraft.au.com (Postfix) with ESMTP id 935353F0F; Mon, 3 May 2004 11:11:54 +1000 (EST) From: Murray Taylor To: Thomas-Martin Seck In-Reply-To: <20040501104017.959.qmail@laurel.tmseck.homedns.org> References: <20040501104017.959.qmail@laurel.tmseck.homedns.org> Content-Type: text/plain Organization: Bytecraft Systems Message-Id: <1083546712.23000.178.camel@wstaylorm.dand06.au.bytecraft.au.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 03 May 2004 11:11:54 +1000 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Ed Stover Subject: Re: Squid, SquidGuard, FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 01:12:20 -0000 Looked at squidguard and dansguardian ... looked at what the aware schools are using ... went with dansguardian ... because it does the 'lookinside' of the content returned as well as the site block list mode. I also use a 'trick' that was mentioned in the Jan 2004 issue of Sysadmin mag as below. It's listed, not on detailed their website, so you do need the dead tree copy. http://www.samag.com/articles/2004/0401/ >>>>>>>>>>>>>>>>>>>>>>>> !!!!! <<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>> you MUST read the article prior to implementation <<<<< >>>>>>>>>>>>>>>>>>>>>>>> !!!!! <<<<<<<<<<<<<<<<<<<<<<<<<<<<< This only works if you are running a local DNS server -------------------8<------------------- cut from named.conf // // internet web-based ad sites // this now defines _MY_ name-server as the master reference to // locate them ... as the dummy-block file just points to localhost // so things just vanish or appear as 'broken links' (so sad ;-( ) // as we dont have the sites here. // // SysAdmin mag Jan 2004 // zone "adimages.go.com" { type master; file "dummy-block"; }; -------------------8<------------------- end cut - theres more The dummy-block file looks like this (name changed to protect the innocent! Insert your own appropriate host names) # more /etc/namedb/dummy-block $TTL 24h @ IN SOA host.example.net. root.host.example.net. ( 200403141650 86400 300 604800 3600 ) @ IN NS dns.example.net. @ IN A 127.0.0.1 * IN A 127.0.0.1 What a pity - no ad sites ;-) As I said above - RTFM in the sysadmin mag article before using this on your system as YMMV. Murray T On Sat, 2004-05-01 at 20:40, Thomas-Martin Seck wrote: > * Ed Stover [gmane.os.freebsd.devel.hackers]: > > > Has any one successfully done squid with squidGuard on a FreeBSD later then > > 4.5 ? I have made it work on 4.5 but nothing later because of the berkly db > > changes after 4.5, if you have made contentent filtering work on > > FreeBSD-current can I get some tips? I like 4.5 but 4.9 has better hardware > > coverage. > > squid and squidGuard work flawlessly on -STABLE if you don't mind that > squidGuard (nowadays?) needs db3 from ports. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > ************************************************************************ > This Email has been scanned for Viruses by MailMarshal. > ************************************************************************ ************************************************************************ This Email has been scanned for Viruses by MailMarshal. ************************************************************************ From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 05:10:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5993716A4CE for ; Mon, 3 May 2004 05:10:51 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 492F143D46 for ; Mon, 3 May 2004 05:10:50 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i43C8uDv081705 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 3 May 2004 14:09:25 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i43C8QUi082867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 May 2004 14:08:27 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i43C8QrJ042697; Mon, 3 May 2004 14:08:26 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i43C8P31042696; Mon, 3 May 2004 14:08:25 +0200 (CEST) (envelope-from ticso) Date: Mon, 3 May 2004 14:08:25 +0200 From: Bernd Walter To: Rita Lin Message-ID: <20040503120824.GG38488@cicely12.cicely.de> References: <004c01c43053$2a775920$9402a8c0@emachine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004c01c43053$2a775920$9402a8c0@emachine> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.63 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on cicely12.cicely.de cc: freebsd-hackers@freebsd.org Subject: Re: USB device driver question: timeout() and usbd_do_request() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 12:10:51 -0000 On Sun, May 02, 2004 at 10:38:42AM -0400, Rita Lin wrote: > Hello, > > I'm writing a USB driver for a device that does not have any interrupt. It only has Bulk-in and Bulk-out. A periodic polling status from default pipe is required to have a smooth data transfer. I used timeout() routine to call usbd_do_request() for polling. I thought maybe timeout() is called under interrupt context, since usbd_do_request() access system I/O, it crashes. However, by adding this timeout() in ucomstart(), it didn't crash until the third call to timeout(). Removing usbd_do_request() allows the timeout() to work without any problem. From the USB analyzer, I could see that even if the system crashed, a request was sent to the USB device correctly. There are two crashdump messages printed out to the screen, I could only catch the second one. The first one scrolled off the screen too fast. By counting the byte and the instruction pointer, the routine crashed in acquire_lock(). I 'greped' the kernel source code, didn't see this routine. > > I know I'm missing some important FreeBSD concept since I'm new to it, by reading related document did not reveal anything that might help me. If usbd_do_request() should never be used in timeout() as a callback routine, what other options do I have, to implement a status-polling scheme? You can't use usbd_do_request in timeout as it requires memory allocation, etc... But I don't understand the whole issue you have. Just schedule a request and wait for the device to ack. The Host controller does the polling for you as long as the request is queued and the timeout value supplied with the request did not time out. That has nothing to do with FreeBSD - it's how things work with USB in general. PS: please break lines -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 08:19:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A807716A4CE for ; Mon, 3 May 2004 08:19:52 -0700 (PDT) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by mx1.FreeBSD.org (Postfix) with SMTP id 088D143D45 for ; Mon, 3 May 2004 08:19:52 -0700 (PDT) (envelope-from juhlig@parc.com) Received: from parc.com ([13.1.103.2]) by alpha.xerox.com with SMTP id <388433(2)>; Mon, 3 May 2004 08:19:45 PDT Message-ID: <4096630F.9080500@parc.com> Date: Mon, 3 May 2004 08:19:43 PDT From: John Uhlig User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stefan Bethke References: <409024D6.7090800@parc.com> <20040429000158.GA61693@xor.obsecurity.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: sunsa@parc.com cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: kmem_malloc crashes running FreeBSD 5.2.1-RELEASE-p5 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 15:19:52 -0000 Well, Don Bowman was very helpful in suggesting some kernel parameters. Unfortunately, they did not work for us. If we had the time to experiment with more settings, perhaps we would have been able to find the right combination. Since we do not have that time due to our schedule I was forced to "fix" the problem by setting "hw.physmem=2G" in /boot/loader.conf (thanks again to Don). It ran for over 8 hours while I ran multiple scripts copying data from multiple systems to it and while continuously running the /etc/periodic/security scripts on it. All previous tests crashed the server (usually within 20 minutes). I am hoping that this issue will be resolved by the developers in the future as we would like to be able to use the full complement of available memory (4GB). thanks to all who have responded to my inquiry. John Uhlig. Stefan Bethke wrote: > Am 29.04.2004 um 02:01 schrieb Kris Kennaway: > >> On Wed, Apr 28, 2004 at 02:40:38PM -0700, John Uhlig wrote: >> >>> On the web, freebsd mailing lists and bug lists, I have seen >>> existing thread about "kmem_malloc and kmem_map too small" problems >>> - but no evidence of a fix or patch. We experienced the same >>> problem running 4.9 but were able to fix it by setting the MAXMEM >>> option in our kernel conf file to a value 1GB less than actual >>> physical memory size. This does not help with 5.2.1-RELEASE-p5. >>> >> See PR 53416. You just need to tune your kernel resource allocation >> to deal with the large amount of memory your system has. > > > I recently enquired about advice for this exact situation on -current > (see http://lists.freebsd.org/pipermail/freebsd-current/2004-April/ > 026065.html), but didn't really get any. > > The PR does not give advice on which parameters in which way, or list > a solution. My own experimentation has been inconclusive; the > machine still panics when running the daily scripts. I'm running a > cron job every minute to record various vm statistics now; hopefully > this will give me further pointers. > > How does PAE affect this? My box has 6 GB, but I have disabled PAE > for the moment. > > And just for clarification: the panic is with basically no load, just > some file system pressure (two jails running the daily scripts); > otherwise, the machine is unused. > > > Stefan > From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 10:50:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24C0416A4CF for ; Mon, 3 May 2004 10:50:51 -0700 (PDT) Received: from mail2.speakeasy.net (mail2.speakeasy.net [216.254.0.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACA7643D31 for ; Mon, 3 May 2004 10:50:50 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 11636 invoked from network); 3 May 2004 17:50:49 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 3 May 2004 17:50:49 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i43HoiFl056848; Mon, 3 May 2004 13:50:46 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Mon, 3 May 2004 13:22:37 -0400 User-Agent: KMail/1.6 References: <20040502132115.C583.DSNOFE@hotmail.com> In-Reply-To: <20040502132115.C583.DSNOFE@hotmail.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405031322.37241.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Deng XueFeng Subject: Re: Is this LOST?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 17:50:51 -0000 On Sunday 02 May 2004 01:26 am, Deng XueFeng wrote: > I found the htonl implemention in libc for i386 is not sync with the > kern. > > sys use bswap for swaping the int. but libc still use xchg. > IS THIS LOST? It's because libc still supports 80386 which doesn't have bswap (introduced on the 486 IIRC). The kernel only supports 486+ unless you explicitly build an 80386 kernel, which won't use bswap for htonl(). -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 13:49:30 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 663D316A4CE for ; Mon, 3 May 2004 13:49:30 -0700 (PDT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id F264143D45 for ; Mon, 3 May 2004 13:49:29 -0700 (PDT) (envelope-from ritalin@comcast.net) Received: from emachine (pcp04418869pcs.nrockv01.md.comcast.net[69.140.111.25]) by comcast.net (sccrmhc11) with SMTP id <2004050320491801100jkrske>; Mon, 3 May 2004 20:49:23 +0000 Message-ID: <008901c4314e$72b214e0$9402a8c0@emachine> From: "Rita Lin" To: References: <004c01c43053$2a775920$9402a8c0@emachine> <20040503120824.GG38488@cicely12.cicely.de> Date: Mon, 3 May 2004 16:37:22 -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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 cc: freebsd-hackers@freebsd.org Subject: Re: USB device driver question: timeout() and usbd_do_request() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 20:49:30 -0000 > But I don't understand the whole issue you have. > Just schedule a request and wait for the device to ack. > The Host controller does the polling for you as long as the request is > queued and the timeout value supplied with the request did not time out. > That has nothing to do with FreeBSD - it's how things work with USB in > general. I needed a "task" or a timer that periodicaly polls the modem status from the USB device. I think you meant the timeout value inside the usbd_do_request(). I needed something that periodically calls usbd_do_request(). The mention of FreeBSD device polling was something I found on the Web. The FreeBSD allows network driver to do polling instead of interrupt. The implementation requires the first interrupt from the device in order to register the callback for the polling. When I first saw the device polling support in FreeBSD, I thought I could call usbd_do_request() in the callback routine. I was wrong. Mike Silbersack suggested the use of kthread. I added it today, tested it out, and it works. Thanks, Mike! By the way, for people who are writing USB drivers that uses ucom support, you do not need to modify ucom.c to support multiple ports. By doing a trick in declaring xxx_softc, I was able to create 4 ucom ports with one single physical device. Rita > > -- > B.Walter BWCT http://www.bwct.de > bernd@bwct.de info@bwct.de > From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 14:11:14 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4908F16A4CE for ; Mon, 3 May 2004 14:11:14 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E37043D3F for ; Mon, 3 May 2004 14:11:13 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i43LAwDv003745 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 3 May 2004 23:11:03 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i43LA8Ui086955 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 May 2004 23:10:09 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i43LA7Ju045455; Mon, 3 May 2004 23:10:07 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i43LA6r3045454; Mon, 3 May 2004 23:10:06 +0200 (CEST) (envelope-from ticso) Date: Mon, 3 May 2004 23:10:06 +0200 From: Bernd Walter To: Rita Lin Message-ID: <20040503211005.GJ38488@cicely12.cicely.de> References: <004c01c43053$2a775920$9402a8c0@emachine> <20040503120824.GG38488@cicely12.cicely.de> <008901c4314e$72b214e0$9402a8c0@emachine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <008901c4314e$72b214e0$9402a8c0@emachine> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de cc: freebsd-hackers@freebsd.org cc: ticso@cicely.de Subject: Re: USB device driver question: timeout() and usbd_do_request() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 21:11:14 -0000 On Mon, May 03, 2004 at 04:37:22PM -0400, Rita Lin wrote: > > But I don't understand the whole issue you have. > > Just schedule a request and wait for the device to ack. > > The Host controller does the polling for you as long as the request is > > queued and the timeout value supplied with the request did not time out. > > That has nothing to do with FreeBSD - it's how things work with USB in > > general. > I needed a "task" or a timer that periodicaly polls the modem status from > the USB device. > I think you meant the timeout value inside the usbd_do_request(). I needed > something that > periodically calls usbd_do_request(). Igh - that sounds like a very bad device design then. There would have been lots a ways to do in a clean way without additional pipes - such as transfering 0 sized packets to trigger a status inquiry or by adding status bytes in each packet. For what purpose do you need to poll the status in case for this device? > The mention of FreeBSD device polling was something I found on the Web. The > FreeBSD allows network driver to do polling instead of interrupt. The > implementation requires the first interrupt from the device in order to > register the callback for the polling. When I first saw the device polling > support in FreeBSD, I thought I could call usbd_do_request() in the callback > routine. I was wrong. Yes - that's for IO or memory accessable devices - basicly to avoid interrupt overhead I think. > Mike Silbersack suggested the use of kthread. I added it today, tested it > out, and it works. Thanks, Mike! > > By the way, for people who are writing USB drivers that uses ucom support, > you do not need to modify ucom.c to support multiple ports. By doing a trick > in declaring xxx_softc, I was able to create 4 ucom ports with one single > physical device. Yes that's possible as long a you have separate pipes for each channel. But if you have separate pipes for each channel then the device could use separate USB interfaces as well so you can attach seprate instances of your driver as well without doing special handling. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 14:48:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16EC716A4CE for ; Mon, 3 May 2004 14:48:47 -0700 (PDT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2F6643D49 for ; Mon, 3 May 2004 14:48:46 -0700 (PDT) (envelope-from ritalin@comcast.net) Received: from emachine (pcp04418869pcs.nrockv01.md.comcast.net[69.140.111.25]) by comcast.net (sccrmhc11) with SMTP id <2004050321484501100jm4a4e>; Mon, 3 May 2004 21:48:45 +0000 Message-ID: <001a01c43156$bce21c60$9402a8c0@emachine> From: "Rita Lin" To: References: <004c01c43053$2a775920$9402a8c0@emachine> <20040503120824.GG38488@cicely12.cicely.de> <008901c4314e$72b214e0$9402a8c0@emachine> <20040503211005.GJ38488@cicely12.cicely.de> Date: Mon, 3 May 2004 17:36:47 -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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 cc: freebsd-hackers@freebsd.org Subject: Re: USB device driver question: timeout() and usbd_do_request() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 21:48:47 -0000 > Igh - that sounds like a very bad device design then. > There would have been lots a ways to do in a clean way without > additional pipes - such as transfering 0 sized packets to trigger a > status inquiry or by adding status bytes in each packet. > For what purpose do you need to poll the status in case for this device? I would not say it's a very bad device design. However, I do agree with you that there are numerous way to implement it. Most devices generate interrupts when there is a modem status change. This particular device does not support interrupts. > Yes that's possible as long a you have separate pipes for each channel. > But if you have separate pipes for each channel then the device could > use separate USB interfaces as well so you can attach seprate instances > of your driver as well without doing special handling. > -- > B.Walter BWCT http://www.bwct.de > bernd@bwct.de info@bwct.de > That is correct provided that xxx_softc is handled correctly, otherwise, you will end up handling wrong ucom_softc each time when driver specific routines are called. I didn't do any special handling in my driver methods. As I mentioned earlier, I only did a trick in declaring the xxx_softc. ucom_attach() attaches one instance of my driver. I made this comment because I saw some earlier posts about ucom needed modification to support multiple ports. Rita From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 15:26:57 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 463E016A4CE for ; Mon, 3 May 2004 15:26:57 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D9B343D2D for ; Mon, 3 May 2004 15:26:56 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0)i43MQnDv005921 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 4 May 2004 00:26:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i43MPdUi087474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 May 2004 00:25:40 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i43MPdOZ045772; Tue, 4 May 2004 00:25:39 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i43MPckM045771; Tue, 4 May 2004 00:25:39 +0200 (CEST) (envelope-from ticso) Date: Tue, 4 May 2004 00:25:38 +0200 From: Bernd Walter To: Rita Lin Message-ID: <20040503222538.GK38488@cicely12.cicely.de> References: <004c01c43053$2a775920$9402a8c0@emachine> <20040503120824.GG38488@cicely12.cicely.de> <008901c4314e$72b214e0$9402a8c0@emachine> <20040503211005.GJ38488@cicely12.cicely.de> <001a01c43156$bce21c60$9402a8c0@emachine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001a01c43156$bce21c60$9402a8c0@emachine> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.63 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on cicely12.cicely.de cc: freebsd-hackers@freebsd.org cc: ticso@cicely.de Subject: Re: USB device driver question: timeout() and usbd_do_request() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 22:26:57 -0000 On Mon, May 03, 2004 at 05:36:47PM -0400, Rita Lin wrote: > > Igh - that sounds like a very bad device design then. > > There would have been lots a ways to do in a clean way without > > additional pipes - such as transfering 0 sized packets to trigger a > > status inquiry or by adding status bytes in each packet. > > For what purpose do you need to poll the status in case for this device? > I would not say it's a very bad device design. However, I do agree with you > that there are numerous way to implement it. Most devices generate > interrupts > when there is a modem status change. This particular device does > not support interrupts. That is what I call a bad design. You waste resources because the device designer did not take the features he had available. > > Yes that's possible as long a you have separate pipes for each channel. > > But if you have separate pipes for each channel then the device could > > use separate USB interfaces as well so you can attach seprate instances > > of your driver as well without doing special handling. > > > That is correct provided that xxx_softc is handled correctly, otherwise, you > will end up handling wrong ucom_softc each time when driver specific > routines are called. I didn't do any special handling in my driver methods. > > As I mentioned earlier, I only did a trick in declaring the xxx_softc. > ucom_attach() attaches one instance of my driver. I made this comment > because I saw some earlier posts about ucom needed modification to support > multiple ports. If this is a device level driver yes. But I still think that a device with multiple ports and separate pipes per port should also offer multiple USB interfaces. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 16:00:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0164C16A4DE for ; Mon, 3 May 2004 16:00:40 -0700 (PDT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB1A643D64 for ; Mon, 3 May 2004 16:00:18 -0700 (PDT) (envelope-from ritalin@comcast.net) Received: from emachine (pcp04418869pcs.nrockv01.md.comcast.net[69.140.111.25]) by comcast.net (sccrmhc12) with SMTP id <2004050323001401200nhpuoe>; Mon, 3 May 2004 23:00:15 +0000 Message-ID: <006f01c43160$b84a1220$9402a8c0@emachine> From: "Rita Lin" To: References: <004c01c43053$2a775920$9402a8c0@emachine> <20040503120824.GG38488@cicely12.cicely.de> <008901c4314e$72b214e0$9402a8c0@emachine> <20040503211005.GJ38488@cicely12.cicely.de> <001a01c43156$bce21c60$9402a8c0@emachine> <20040503222538.GK38488@cicely12.cicely.de> Date: Mon, 3 May 2004 18:48:14 -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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 cc: freebsd-hackers@freebsd.org Subject: Re: USB device driver question: timeout() and usbd_do_request() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 23:00:41 -0000 > That is what I call a bad design. > You waste resources because the device designer did not take the > features he had available. Okay, I guess so. There are also other minor things that I don't understand why the device is implemented the way it is. Since I don't make it, and I don't work for the company that makes it, it's beyond me. > If this is a device level driver yes. > But I still think that a device with multiple ports and separate > pipes per port should also offer multiple USB interfaces. Are you talking about USB interfaces at software layer or physical layer? I think I'm confused here. If it's software layer, yes, the device offers multiple USB interfaces. Each interface has its own pipes. But, of course, the default pipe is shared. Rita From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 16:04:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C4B216A4CE for ; Mon, 3 May 2004 16:04:22 -0700 (PDT) Received: from sdf.lonestar.org (ol.freeshell.org [192.94.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8E4143D39 for ; Mon, 3 May 2004 16:04:21 -0700 (PDT) (envelope-from pieckiel@sdf.lonestar.org) Received: from sdf.lonestar.org (IDENT:pieckiel@sverige.freeshell.org [192.94.73.4]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id i43N4IWQ001743 for ; Mon, 3 May 2004 23:04:19 GMT Received: (from pieckiel@localhost) by sdf.lonestar.org (8.12.10/8.12.8/Submit) id i43N4InO026908 for freebsd-hackers@freebsd.org; Mon, 3 May 2004 19:04:18 -0400 (EDT) Date: Mon, 3 May 2004 19:04:18 -0400 From: "Kevin A. Pieckiel" To: freebsd-hackers@freebsd.org Message-ID: <20040503230418.GA25019@SDF.LONESTAR.ORG> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Editing /usr/include/*.h? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 23:04:22 -0000 I want to modify sys/param.h to increase the value of MAXLOGNAME. I know I'll need to recompile world/kernel after such a change. Do I need to only modify /usr/src/sys/sys/param.h, or rather do I need to modify /usr/include/sys/param.h? I'm assuming when I make buildworld or make buildkernel, the includes in /usr/include aren't used, so the latter change will actually be overwritten when I do a make installworld. Thanks, Kevin From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 16:11:36 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C9D316A4CE for ; Mon, 3 May 2004 16:11:36 -0700 (PDT) Received: from mta4.rcsntx.swbell.net (mta4.rcsntx.swbell.net [151.164.30.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id D792843D39 for ; Mon, 3 May 2004 16:11:35 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (37c136929cd066ba7ed0156f9875ba5e@adsl-67-115-73-128.dsl.lsan03.pacbell.net [67.115.73.128])i43NBOYS012908; Mon, 3 May 2004 18:11:34 -0500 (CDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 2E74B528DF; Mon, 3 May 2004 16:11:23 -0700 (PDT) Date: Mon, 3 May 2004 16:11:23 -0700 From: Kris Kennaway To: John Uhlig Message-ID: <20040503231123.GA50427@xor.obsecurity.org> References: <409024D6.7090800@parc.com> <20040429000158.GA61693@xor.obsecurity.org> <4096630F.9080500@parc.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc" Content-Disposition: inline In-Reply-To: <4096630F.9080500@parc.com> User-Agent: Mutt/1.4.2.1i cc: sunsa@parc.com cc: hackers@freebsd.org cc: Stefan Bethke cc: Kris Kennaway Subject: Re: kmem_malloc crashes running FreeBSD 5.2.1-RELEASE-p5 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 23:11:36 -0000 --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 03, 2004 at 08:19:43AM -0700, John Uhlig wrote: >=20 > Well, Don Bowman was very helpful in suggesting some kernel parameters.= =20 > Unfortunately, they > did not work for us. If we had the time to experiment with more=20 > settings, perhaps we would have > been able to find the right combination. Since we do not have that time= =20 > due to our schedule I was > forced to "fix" the problem by setting "hw.physmem=3D2G" in=20 > /boot/loader.conf (thanks again to Don). > It ran for over 8 hours while I ran multiple scripts copying data from=20 > multiple systems to it and > while continuously running the /etc/periodic/security scripts on it. All= =20 > previous tests crashed the > server (usually within 20 minutes). >=20 > I am hoping that this issue will be resolved by the developers in the=20 > future as we would like to be > able to use the full complement of available memory (4GB). I'm pretty sure it's just a matter of the right tuning. All I needed to do was to add this on my heavily loaded 4GB machine: options VM_KMEM_SIZE_MAX=3D419430400 #400MB Kris --C7zPtVaVf+AK4Oqc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAltGaWry0BWjoQKURAp95AKC1x8XFMqNQ4bnczhJz5zmbmvpA2wCg2OX/ YJR0556OisNcZNB5QcAwQyg= =05SC -----END PGP SIGNATURE----- --C7zPtVaVf+AK4Oqc-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 16:29:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D35F716A4CE for ; Mon, 3 May 2004 16:29:56 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BC3043D4C for ; Mon, 3 May 2004 16:29:56 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0)i43NTnDv008214 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 4 May 2004 01:29:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i43NSqUi087898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 May 2004 01:28:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i43NSqA9046087; Tue, 4 May 2004 01:28:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i43NSpZA046086; Tue, 4 May 2004 01:28:51 +0200 (CEST) (envelope-from ticso) Date: Tue, 4 May 2004 01:28:51 +0200 From: Bernd Walter To: Rita Lin Message-ID: <20040503232850.GL38488@cicely12.cicely.de> References: <004c01c43053$2a775920$9402a8c0@emachine> <20040503120824.GG38488@cicely12.cicely.de> <008901c4314e$72b214e0$9402a8c0@emachine> <20040503211005.GJ38488@cicely12.cicely.de> <001a01c43156$bce21c60$9402a8c0@emachine> <20040503222538.GK38488@cicely12.cicely.de> <006f01c43160$b84a1220$9402a8c0@emachine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006f01c43160$b84a1220$9402a8c0@emachine> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.63 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on cicely12.cicely.de cc: freebsd-hackers@freebsd.org cc: ticso@cicely.de Subject: Re: USB device driver question: timeout() and usbd_do_request() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 23:29:57 -0000 On Mon, May 03, 2004 at 06:48:14PM -0400, Rita Lin wrote: > > That is what I call a bad design. > > You waste resources because the device designer did not take the > > features he had available. > Okay, I guess so. There are also other minor things that I don't understand > why > the device is implemented the way it is. Since I don't make it, and I don't > work for > the company that makes it, it's beyond me. Obviously. I also understand that a vendor can't use an interrupt pipe for this case as USB hardware is usually limited in number and type of pipes it can handle, but USB offers much more. It's also not absolutely clear to me why you are interested in regular status information at all? > > If this is a device level driver yes. > > But I still think that a device with multiple ports and separate > > pipes per port should also offer multiple USB interfaces. > Are you talking about USB interfaces at software layer or physical layer? I > think I'm confused here. > If it's software layer, yes, the device offers multiple USB interfaces. Each > interface has its own pipes. > But, of course, the default pipe is shared. That's what I mean - so the vendor intendend use is to attach at interface level, which means each port has it's completely own instance of driver (and also a softc on it's own) - no difference for ucom comparing to completely different devices. If you instead take the whole device at once you can't use the same driver to work with other variants of the same protocol. Maybe the vendor also has a device plus a printer interface in the future. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 17:13:08 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90CE416A4CE for ; Mon, 3 May 2004 17:13:08 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E40D43D5A for ; Mon, 3 May 2004 17:13:08 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <2004050400130701300frslne>; Tue, 4 May 2004 00:13:07 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA44960; Mon, 3 May 2004 17:13:05 -0700 (PDT) Date: Mon, 3 May 2004 17:13:04 -0700 (PDT) From: Julian Elischer To: "Kevin A. Pieckiel" In-Reply-To: <20040503230418.GA25019@SDF.LONESTAR.ORG> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: Editing /usr/include/*.h? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 00:13:08 -0000 On Mon, 3 May 2004, Kevin A. Pieckiel wrote: > I want to modify sys/param.h to increase the value of MAXLOGNAME. I know I've done exactly this.. edit /usr/src/sys/param.h cd /usr/src make includes now teh sources and the files in /usr/include are in sync of course you are now incompatible with everyone else ;-) > I'll need to recompile world/kernel after such a change. Do I need to > only modify /usr/src/sys/sys/param.h, or rather do I need to modify > /usr/include/sys/param.h? I'm assuming when I make buildworld or make > buildkernel, the includes in /usr/include aren't used, so the latter > change will actually be overwritten when I do a make installworld. > > Thanks, > Kevin > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 17:48:33 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0655D16A4CE; Mon, 3 May 2004 17:48:33 -0700 (PDT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CAA343D49; Mon, 3 May 2004 17:48:32 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: from freebsd.org (g4.samsco.home [192.168.0.12]) by pooker.samsco.org (8.12.10/8.12.10) with ESMTP id i440qWu6015086; Mon, 3 May 2004 18:52:33 -0600 (MDT) (envelope-from scottl@freebsd.org) Message-ID: <4096E828.2080302@freebsd.org> Date: Mon, 03 May 2004 18:47:36 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7a) Gecko/20040214 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org, current@freebsd.org, stable@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org Subject: Call for March-April 2004 Status reports! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 00:48:33 -0000 All, It's time again for bi-monthly status reports. As always, the template is at http://www.freebsd.org/news/status/report-sample.xml. Please make submissions to monthly@freebsd.org by May 12 for inclusion. Any projects that relate to FreeBSD development, documentation, ports, etc, are welcome. Previous reports can be found at http://www.freebsd.org/news/status. Again, the due date is May 12. Thanks! Scott From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 17:51:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7841516A4CE; Mon, 3 May 2004 17:51:35 -0700 (PDT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id F09B943D45; Mon, 3 May 2004 17:51:34 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: from freebsd.org (g4.samsco.home [192.168.0.12]) by pooker.samsco.org (8.12.10/8.12.10) with ESMTP id i440tau6015122; Mon, 3 May 2004 18:55:36 -0600 (MDT) (envelope-from scottl@freebsd.org) Message-ID: <4096E8DF.70506@freebsd.org> Date: Mon, 03 May 2004 18:50:39 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7a) Gecko/20040214 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org, current@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org Subject: Call for March-April 2004 Status reports! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 00:51:35 -0000 All, It's time again for bi-monthly status reports. As always, the template is at http://www.freebsd.org/news/status/report-sample.xml. Please make submissions to monthly@freebsd.org by May 12 for inclusion. Any projects that relate to FreeBSD development, documentation, ports, etc, are welcome. Previous reports can be found at http://www.freebsd.org/news/status. Again, the due date is May 12. Thanks! Scott From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 18:04:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 963AC16A4CE; Mon, 3 May 2004 18:04:53 -0700 (PDT) Received: from hotmail.com (bay2-dav45.bay2.hotmail.com [65.54.246.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A3D243D45; Mon, 3 May 2004 18:04:53 -0700 (PDT) (envelope-from dsnofe@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 3 May 2004 18:04:53 -0700 Received: from 61.147.223.15 by bay2-dav45.bay2.hotmail.com with DAV; Tue, 04 May 2004 01:04:53 +0000 X-Originating-IP: [61.147.223.15] X-Originating-Email: [dsnofe@hotmail.com] X-Sender: dsnofe@hotmail.com Date: Tue, 04 May 2004 09:04:53 +0800 From: Deng XueFeng To: John Baldwin In-Reply-To: <200405031322.37241.jhb@FreeBSD.org> References: <20040502132115.C583.DSNOFE@hotmail.com> <200405031322.37241.jhb@FreeBSD.org> Message-Id: <20040504090033.B046.DSNOFE@hotmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.09.01 [CN] X-OriginalArrivalTime: 04 May 2004 01:04:53.0265 (UTC) FILETIME=[CEBC1810:01C43173] cc: hackers Subject: Re: Is this LOST?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 01:04:53 -0000 > On Sunday 02 May 2004 01:26 am, Deng XueFeng wrote: > > I found the htonl implemention in libc for i386 is not sync with the > > kern. > > > > sys use bswap for swaping the int. but libc still use xchg. > > IS THIS LOST? > > It's because libc still supports 80386 which doesn't have bswap (introduced on > the 486 IIRC). The kernel only supports 486+ unless you explicitly build an > 80386 kernel, which won't use bswap for htonl(). Since 5-current kernel do not support 80386. why keep libc(5-current) support 80386? and if wanna 80386 support, 4-stable can do that. Sincerely, Deng XueFeng From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 18:25:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AB8916A4CE for ; Mon, 3 May 2004 18:25:02 -0700 (PDT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B68343D46 for ; Mon, 3 May 2004 18:25:02 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 21611 invoked from network); 4 May 2004 01:25:01 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail4.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 4 May 2004 01:25:01 -0000 Received: from hydrogen.funkthat.com (kdqted@localhost.funkthat.com [127.0.0.1])i441P0Ex041166; Mon, 3 May 2004 18:25:00 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i441P0GZ041156; Mon, 3 May 2004 18:25:00 -0700 (PDT) Date: Mon, 3 May 2004 18:25:00 -0700 From: John-Mark Gurney To: Deng XueFeng Message-ID: <20040504012500.GB601@funkthat.com> Mail-Followup-To: Deng XueFeng , John Baldwin , hackers References: <20040502132115.C583.DSNOFE@hotmail.com> <200405031322.37241.jhb@FreeBSD.org> <20040504090033.B046.DSNOFE@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040504090033.B046.DSNOFE@hotmail.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: hackers Subject: Re: Is this LOST?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 01:25:02 -0000 Deng XueFeng wrote this message on Tue, May 04, 2004 at 09:04 +0800: > > the 486 IIRC). The kernel only supports 486+ unless you explicitly build an ^^^^^^^^^^^^^^^^^^^ > > 80386 kernel, which won't use bswap for htonl(). ^^^^^^^^^^^^ > Since 5-current kernel do not support 80386. > why keep libc(5-current) support 80386? because you can still run -current on an 80386, at least that's what I hear from bde. :) -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 18:49:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1FAA16A4CE; Mon, 3 May 2004 18:49:21 -0700 (PDT) Received: from mtaw4.prodigy.net (mtaw4.prodigy.net [64.164.98.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85EDD43D48; Mon, 3 May 2004 18:49:21 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (b6631b173380bc8c02510b18e21e965c@adsl-67-115-73-128.dsl.lsan03.pacbell.net [67.115.73.128]) by mtaw4.prodigy.net (8.12.10/8.12.10) with ESMTP id i441nKfj000242; Mon, 3 May 2004 18:49:20 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 02139528DF; Mon, 3 May 2004 18:49:19 -0700 (PDT) Date: Mon, 3 May 2004 18:49:19 -0700 From: Kris Kennaway To: Deng XueFeng Message-ID: <20040504014919.GA57723@xor.obsecurity.org> References: <20040502132115.C583.DSNOFE@hotmail.com> <200405031322.37241.jhb@FreeBSD.org> <20040504090033.B046.DSNOFE@hotmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <20040504090033.B046.DSNOFE@hotmail.com> User-Agent: Mutt/1.4.2.1i cc: hackers Subject: Re: Is this LOST?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 01:49:21 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 04, 2004 at 09:04:53AM +0800, Deng XueFeng wrote: > > On Sunday 02 May 2004 01:26 am, Deng XueFeng wrote: > > > I found the htonl implemention in libc for i386 is not sync with the > > > kern. > > > > > > sys use bswap for swaping the int. but libc still use xchg. > > > IS THIS LOST? > >=20 > > It's because libc still supports 80386 which doesn't have bswap (introd= uced on=20 > > the 486 IIRC). The kernel only supports 486+ unless you explicitly bui= ld an=20 > > 80386 kernel, which won't use bswap for htonl(). > Since 5-current kernel do not support 80386. > why keep libc(5-current) support 80386? 5-current does support 80386, just not in the default GENERIC kernel. Kris --gKMricLos+KVdGMg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAlvafWry0BWjoQKURAhqMAJ0YkHFWZqv9cRP31hUB7lZssHyn7ACfV07z Hk0Q+qyO4f+goBtakaWV8Pk= =/AZe -----END PGP SIGNATURE----- --gKMricLos+KVdGMg-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 22:08:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16E5D16A4CE; Mon, 3 May 2004 22:08:26 -0700 (PDT) Received: from smtp.omnis.com (smtp.omnis.com [216.239.128.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2C7743D1F; Mon, 3 May 2004 22:08:25 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.homeunix.net (24-161-166-146.san.rr.com [24.161.166.146]) by smtp-relay.omnis.com (Postfix) with ESMTP id 2819A14077E2; Mon, 3 May 2004 22:08:24 -0700 (PDT) From: Wes Peters Organization: Softweyr.COM To: freebsd-hackers@freebsd.org Date: Mon, 3 May 2004 22:08:24 -0700 User-Agent: KMail/1.6.1 References: <200404261846.i3QIkmZV002230@bleep.craftncomp.com> <002201c42bc8$9cccd660$b3db87d4@multiplay.co.uk> In-Reply-To: <002201c42bc8$9cccd660$b3db87d4@multiplay.co.uk> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405032208.24655.wes@softweyr.com> cc: Stephen Hocking cc: hackers@freebsd.org cc: Steven Hartland Subject: Re: Vendors of multi-port PCI ethernet cards? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 05:08:26 -0000 On Monday 26 April 2004 12:56, Steven Hartland wrote: > Intel still do iirc. > ----- Original Message ----- > From: "Stephen Hocking" > > > Does anyone know where I can lay my hands on one of those 4 port > > ethernet cards that used to be around a while back? http://www.zipzoomfly.com/jsp/ProductDetail.jsp?ProductCode=251442 They didn't show 10/100 cards, but they're still around. -- Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 22:08:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16E5D16A4CE; Mon, 3 May 2004 22:08:26 -0700 (PDT) Received: from smtp.omnis.com (smtp.omnis.com [216.239.128.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2C7743D1F; Mon, 3 May 2004 22:08:25 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.homeunix.net (24-161-166-146.san.rr.com [24.161.166.146]) by smtp-relay.omnis.com (Postfix) with ESMTP id 2819A14077E2; Mon, 3 May 2004 22:08:24 -0700 (PDT) From: Wes Peters Organization: Softweyr.COM To: freebsd-hackers@freebsd.org Date: Mon, 3 May 2004 22:08:24 -0700 User-Agent: KMail/1.6.1 References: <200404261846.i3QIkmZV002230@bleep.craftncomp.com> <002201c42bc8$9cccd660$b3db87d4@multiplay.co.uk> In-Reply-To: <002201c42bc8$9cccd660$b3db87d4@multiplay.co.uk> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405032208.24655.wes@softweyr.com> cc: Stephen Hocking cc: hackers@freebsd.org cc: Steven Hartland Subject: Re: Vendors of multi-port PCI ethernet cards? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 05:08:26 -0000 On Monday 26 April 2004 12:56, Steven Hartland wrote: > Intel still do iirc. > ----- Original Message ----- > From: "Stephen Hocking" > > > Does anyone know where I can lay my hands on one of those 4 port > > ethernet cards that used to be around a while back? http://www.zipzoomfly.com/jsp/ProductDetail.jsp?ProductCode=251442 They didn't show 10/100 cards, but they're still around. -- Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com From owner-freebsd-hackers@FreeBSD.ORG Tue May 4 03:37:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F3FE16A4CE; Tue, 4 May 2004 03:37:06 -0700 (PDT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED90643D31; Tue, 4 May 2004 03:37:05 -0700 (PDT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 700E15310; Tue, 4 May 2004 12:37:04 +0200 (CEST) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id E502C5309; Tue, 4 May 2004 12:36:57 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 2602) id A163733C71; Tue, 4 May 2004 12:36:57 +0200 (CEST) To: Deng XueFeng References: <20040502132115.C583.DSNOFE@hotmail.com> <200405031322.37241.jhb@FreeBSD.org> <20040504090033.B046.DSNOFE@hotmail.com> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Tue, 04 May 2004 12:36:57 +0200 In-Reply-To: <20040504090033.B046.DSNOFE@hotmail.com> (Deng XueFeng's message of "Tue, 04 May 2004 09:04:53 +0800") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: hackers cc: John Baldwin Subject: Re: Is this LOST?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 10:37:06 -0000 Deng XueFeng writes: > Since 5-current kernel do not support 80386. > why keep libc(5-current) support 80386? Set CPUTYPE and make world. See 'man make.conf' for details. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 09:07:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE9B416A4CF for ; Mon, 3 May 2004 09:07:48 -0700 (PDT) Received: from mail.dsl.isometry.net (cpc3-oxfd2-6-0-cust207.oxfd.cable.ntl.com [81.103.193.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6463C43D48 for ; Mon, 3 May 2004 09:07:47 -0700 (PDT) (envelope-from robin@isometry.net) Received: from [127.0.0.1] (ishadow.isometry.net [195.137.51.150]) by mail.dsl.isometry.net (Postfix) with ESMTP id 2008D1D8; Mon, 3 May 2004 16:07:45 +0000 (UTC) Message-ID: <40966E4E.9020603@isometry.net> Date: Mon, 03 May 2004 17:07:42 +0100 From: Robin Breathe User-Agent: Mozilla Thunderbird 0.6 (Windows/20040501) X-Accept-Language: en MIME-Version: 1.0 To: David Yeske References: <20040426182243.59597.qmail__9737.87545594878$1083067025@web13506.mail.yahoo.com> In-Reply-To: <20040426182243.59597.qmail__9737.87545594878$1083067025@web13506.mail.yahoo.com> Content-Type: multipart/mixed; boundary="------------010000020201040808020203" X-Mailman-Approved-At: Tue, 04 May 2004 05:18:03 -0700 cc: freebsd-hackers@FreeBSD.org Subject: Re: netgraph arp issues vs linux veth X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 16:07:48 -0000 This is a multi-part message in MIME format. --------------010000020201040808020203 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit David Yeske wrote: > I made another attempt with netgraph and I think I'm almost there, but I'm > still having some issues. I found a linux solution called veth > http://www.geocities.com/nestorjpg/veth/ which might do the job, but I would > prefer to use netgraph if possible. Here is some more detailed config > information. *SNIP* > Any clues or pointers are greatly appreciated and will mean I get to deploy > FreeBSD with netgraph rather than linux with veth. > > Regards, > David Yeske Reading this and your other post, it seems that you're trying to emulate multiple distinct physical network interfaces on one physical interface with netgraph(4). This is something I've played with myself. I wrote the attached script, mkbridge.sh, to create an ng_bridge(4) attached to the ng_ether(4) node of a particular "real" interface, with an arbitrary number of additional ng_eiface(4), each with it's own MAC address. You've got this far already, but you (or someone else) might find the script useful with some polish. Now, the part you're getting stuck on is the system spitting response packets out of the interface associated with the route to the remote host. So, what you need is some policy routing. A minimal ipf(4) config to achieve this might be: pass out quick on rl0 to ngeth0 from 192.168.10.3/32 to any Works here on -CURRENT, YMMV. Something similar with ipfw(4) should be equally simple. I warn you that the mkbridge.sh script *may* panic 5.2.x-RELEASE if you try the "stop" target (not happy shutting down an ng_eiface(4) node which has had its MAC address changed)... this has been fixed in -CURRENT; I don't know about -STABLE. Regards, - Robin -- Robin Breathe / robin@isometry.net / +44-1865-741800 --------------010000020201040808020203 Content-Type: text/plain; name="mkbridge.sh" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mkbridge.sh" #!/bin/sh -x # Robin Breathe, 2004 # external interface bridge_iface="em0" # the name of our ng_bridge(4) bridge="bridge0" # number of ng_eiface(4) virtual ethernet interfaces to create nvif="2" case $1 in start) # ensure all necessary modules are loaded for module in ng_ether ng_bridge ng_eiface; do kldstat -v | grep -qw ${module} || kldload ${module}.ko || exit 1 done # attach the external interface to the new bridge ngctl mkpeer ${bridge_iface}: bridge lower link0 ngctl name ${bridge_iface}:lower ${bridge} ngctl connect ${bridge_iface}: ${bridge}: upper link1 # stop external interface modifying IEEE 802.3 source address on outbound frames ngctl msg ${bridge_iface}: setautosrc 0 ngctl msg ${bridge_iface}: setpromisc 1 # setup and attach each tap(4) virtual ethernet device for i in $(jot ${nvif:-1} 0); do # create and attach the ng_eiface(4) to the ng_bridge(4) ngctl mkpeer ${bridge}: eiface link$((i+2)) ether # name it vif# ngctl name ${bridge}:link$((i+2)) vif$i # give it a MAC address: 00:be:YY:MM:DD:## link_addr=$(printf "00:be:%s:%02x" $(date +%y:%m:%d) $((i+1))) ifconfig ngeth$i ether ${link_addr} done ;; stop) ngctl shutdown ${bridge}: for i in $(jot ${nvif:-1} 0); do ngctl shutdown vif$((i)): done ngctl msg ${bridge_iface}: setautosrc 1 ngctl msg ${bridge_iface}: setpromisc 0 ;; *) echo "USAGE: `basename $0` {start|stop}" >&2 exit 64 ;; esac --------------010000020201040808020203-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 4 03:59:04 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78F1F16A4CE for ; Tue, 4 May 2004 03:59:04 -0700 (PDT) Received: from gremlin.foo.is (gremlin.foo.is [194.105.250.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3804043D5A for ; Tue, 4 May 2004 03:59:04 -0700 (PDT) (envelope-from baldur@foo.is) Received: from 127.0.0.1 (localhost.foo.is [127.0.0.1]) by injector.foo.is (Postfix) with SMTP id 7CB7D3A1B9 for ; Tue, 4 May 2004 10:59:03 +0000 (GMT) Received: by gremlin.foo.is (Postfix, from userid 1000) id 9BCCC3A1B7; Tue, 4 May 2004 10:59:01 +0000 (GMT) Date: Tue, 4 May 2004 10:59:01 +0000 From: Baldur Gislason To: freebsd-hackers@freebsd.org Message-ID: <20040504105901.GA27896@gremlin.foo.is> User-Agent: Mutt/1.4.1i X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on gremlin.foo.is X-Spam-Level: X-Spam-Status: No, hits=-4.7 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=2.61 X-Sanitizer: Foo MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-Mailman-Approved-At: Tue, 04 May 2004 05:18:03 -0700 Subject: Scanning for printers on remote host X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 10:59:04 -0000 I was wondering how I can get a list of the printers attached to LPD on a remote host. I know Windoze can do this when you enter an IP address of a print server it gives you a list of the printers available on it, and asks which one you want to add. How can I do this on FreeBSD? I have a 3 port ethernet printserver and I don't know what the ports are called in the LPD on it. Baldur From owner-freebsd-hackers@FreeBSD.ORG Tue May 4 07:23:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ED3616A4CE for ; Tue, 4 May 2004 07:23:54 -0700 (PDT) Received: from magellan.palisadesys.com (magellan.palisadesys.com [192.188.162.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0F0D43D1F for ; Tue, 4 May 2004 07:23:53 -0700 (PDT) (envelope-from ghelmer@palisadesys.com) Received: from mira (cetus.palisadesys.com [192.188.162.7]) (authenticated bits=0)i44ENrMt026468 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 4 May 2004 09:23:53 -0500 (CDT) (envelope-from ghelmer@palisadesys.com) From: "Guy Helmer" To: Date: Tue, 4 May 2004 09:23:52 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <200405032208.24655.wes@softweyr.com> Importance: Normal Subject: RE: Vendors of multi-port PCI ethernet cards? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 14:23:54 -0000 Wes Peters wrote on Tuesday, May 04, 2004 12:08 AM: > On Monday 26 April 2004 12:56, Steven Hartland wrote: > > Intel still do iirc. > > ----- Original Message ----- > > From: "Stephen Hocking" > > > > > Does anyone know where I can lay my hands on one of those 4 port > > > ethernet cards that used to be around a while back? > > http://www.zipzoomfly.com/jsp/ProductDetail.jsp?ProductCode=251442 > > They didn't show 10/100 cards, but they're still around. Does anyone know of any commodity dual-port Ethernet NICs that "fail-through" if the power fails (e.g., for a filtering bridge)? I've been looking but I haven't found anything yet. Thanks, Guy Helmer From owner-freebsd-hackers@FreeBSD.ORG Tue May 4 14:20:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B309016A4CE for ; Tue, 4 May 2004 14:20:53 -0700 (PDT) Received: from acenet.co.za (acenet.co.za [196.25.152.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1463443D1F for ; Tue, 4 May 2004 14:20:52 -0700 (PDT) (envelope-from cole@acenet.co.za) Date: Tue, 4 May 2004 23:21:22 EST Message-Id: <200405042321.AA82575904@acenet.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "Cole" To: freebsd-hackers@freebsd.org X-Mailer: X-Mailman-Approved-At: Wed, 05 May 2004 05:33:46 -0700 Subject: SIG_IGN X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cole@acenet.co.za List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 21:20:53 -0000 Hey Im writing a threaded program to handle connections coming from squid. And the program is working fine, except that i cant seem to set signal(SIGPIPE, SIG_IGN) It doesnt give any errors when performing that command, and then when i check to see what SIGPIPE is set to, it apparently isnt SIG_IGN. So i started to search google and i did find a page where guys had the same problem, but that was on linux and not FreeBSD. Im running FreeBSD 4.8-RELEASE gcc version 2.95.4 20020320 [FreeBSD] If anyone has any ideas please let me know. Thanks /Cole From owner-freebsd-hackers@FreeBSD.ORG Wed May 5 10:54:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48AE316A4CE; Wed, 5 May 2004 10:54:11 -0700 (PDT) Received: from gabby.gsicomp.on.ca (CPE00062566c7bb-CM000039c69a66.cpe.net.cable.rogers.com [69.193.82.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF0F443D31; Wed, 5 May 2004 10:54:07 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by gabby.gsicomp.on.ca (8.12.9p2/8.12.9) with ESMTP id i45IEDVH002264; Wed, 5 May 2004 14:16:03 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <00d401c432c9$430394e0$1200a8c0@gsicomp.on.ca> From: "Matt Emmerton" To: "Deng XueFeng" , "John Baldwin" References: <20040502132115.C583.DSNOFE@hotmail.com><200405031322.37241.jhb@FreeBSD.org> <20040504090033.B046.DSNOFE@hotmail.com> Date: Wed, 5 May 2004 13:46:17 -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 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: hackers Subject: Re: Is this LOST?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2004 17:54:11 -0000 > > On Sunday 02 May 2004 01:26 am, Deng XueFeng wrote: > > > I found the htonl implemention in libc for i386 is not sync with the > > > kern. > > > > > > sys use bswap for swaping the int. but libc still use xchg. > > > IS THIS LOST? > > > > It's because libc still supports 80386 which doesn't have bswap (introduced on > > the 486 IIRC). The kernel only supports 486+ unless you explicitly build an > > 80386 kernel, which won't use bswap for htonl(). > > Since 5-current kernel do not support 80386. > why keep libc(5-current) support 80386? The 5-current kernel *does* support 80386 -- you have to recompile your kernel to add 80386 support first. -- Matt Emmerton From owner-freebsd-hackers@FreeBSD.ORG Wed May 5 14:52:34 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD65216A4CE for ; Wed, 5 May 2004 14:52:34 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8864C43D41 for ; Wed, 5 May 2004 14:52:34 -0700 (PDT) (envelope-from ritalin@comcast.net) Received: from emachine (pcp04418869pcs.nrockv01.md.comcast.net[69.140.111.25]) by comcast.net (rwcrmhc11) with SMTP id <2004050521523401300o3cvte>; Wed, 5 May 2004 21:52:34 +0000 Message-ID: <002701c432e9$783dc7a0$9402a8c0@emachine> From: "Rita Lin" To: References: <004c01c43053$2a775920$9402a8c0@emachine> <20040503120824.GG38488@cicely12.cicely.de> <008901c4314e$72b214e0$9402a8c0@emachine> <20040503211005.GJ38488@cicely12.cicely.de> <001a01c43156$bce21c60$9402a8c0@emachine> <20040503222538.GK38488@cicely12.cicely.de> <006f01c43160$b84a1220$9402a8c0@emachine> <20040503232850.GL38488@cicely12.cicely.de> Date: Wed, 5 May 2004 17:39:39 -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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Subject: Is it possible to lose a xfer request queued using usbd_transfer()? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2004 21:52:35 -0000 Hello, I stumbled on a problem that I need some suggestion to continue tracking where the problem is. I started a tip session to the usb port, after typing two characters, any more input returned TS_BUSY. I noticed that this problem also exists when I do a 'cat junk > /dev/ucom0'. After two consecutive usbd_transfer(), it sits there. After some code tracking, I found that the ucomwritecb() for the third usbd_transfer() never gets called in uhci_idone(). I haven't dig further down yet. I'm going to do that tomorrow. If you have some idea, or have some suggestion how I can tackle this problem, please shine some light on me. The first two usbd_transfer are successful, and I could see the packets going out to the USB port with a USB analyzer. Thank you so much. Rita From owner-freebsd-hackers@FreeBSD.ORG Wed May 5 15:09:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97C1416A4CE for ; Wed, 5 May 2004 15:09:59 -0700 (PDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57FEB43D4C for ; Wed, 5 May 2004 15:09:59 -0700 (PDT) (envelope-from ritalin@comcast.net) Received: from emachine (pcp04418869pcs.nrockv01.md.comcast.net[69.140.111.25]) by comcast.net (rwcrmhc13) with SMTP id <200405052209580150090dree>; Wed, 5 May 2004 22:09:59 +0000 Message-ID: <004901c432eb$e6cb4100$9402a8c0@emachine> From: "Rita Lin" To: "Rita Lin" , References: <004c01c43053$2a775920$9402a8c0@emachine><20040503120824.GG38488@cicely12.cicely.de><008901c4314e$72b214e0$9402a8c0@emachine><20040503211005.GJ38488@cicely12.cicely.de><001a01c43156$bce21c60$9402a8c0@emachine><20040503222538.GK38488@cicely12.cicely.de><006f01c43160$b84a1220$9402a8c0@emachine><20040503232850.GL38488@cicely12.cicely.de> <002701c432e9$783dc7a0$9402a8c0@emachine> Date: Wed, 5 May 2004 17:57:03 -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.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Subject: Re: Is it possible to lose a xfer request queued using usbd_transfer()? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2004 22:09:59 -0000 TYPO -->dig<-- should be *dug*. ----- Original Message ----- From: Rita Lin To: Sent: Wednesday, May 05, 2004 5:39 PM Subject: Is it possible to lose a xfer request queued using usbd_transfer()? > Hello, > > I stumbled on a problem that I need some suggestion to continue tracking > where the problem is. > I started a tip session to the usb port, after typing two characters, any > more input returned TS_BUSY. > I noticed that this problem also exists when I do a 'cat junk > /dev/ucom0'. > After two consecutive usbd_transfer(), it sits there. > > After some code tracking, I found that the ucomwritecb() for the third > usbd_transfer() never gets called in uhci_idone(). I haven't dig further > down yet. I'm going to do that tomorrow. If you have some idea, or have some > suggestion how I can tackle this problem, please shine some light on me. The > first two usbd_transfer are successful, and I could see the packets going > out to the USB port with a USB analyzer. > > Thank you so much. > Rita > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Wed May 5 20:45:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8004616A4CE for ; Wed, 5 May 2004 20:45:01 -0700 (PDT) Received: from regina.plastikos.com (216-107-106-250.wan.networktel.net [216.107.106.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id E119C43D1F for ; Wed, 5 May 2004 20:45:00 -0700 (PDT) (envelope-from fullermd@over-yonder.net) Received: from mortis.over-yonder.net (adsl-19-148-106.jan.bellsouth.net [68.19.148.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by regina.plastikos.com (Postfix) with ESMTP id BBA576EEB9 for ; Wed, 5 May 2004 23:44:49 -0400 (EDT) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 6009020F22; Wed, 5 May 2004 22:44:47 -0500 (CDT) Date: Wed, 5 May 2004 22:44:46 -0500 From: "Matthew D. Fuller" To: Julian Elischer Message-ID: <20040506034446.GA29198@over-yonder.net> References: <20040503230418.GA25019@SDF.LONESTAR.ORG> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.6i-fullermd.2 cc: freebsd-hackers@freebsd.org cc: "Kevin A. Pieckiel" Subject: Re: Editing /usr/include/*.h? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 03:45:01 -0000 On Mon, May 03, 2004 at 05:13:04PM -0700 I heard the voice of Julian Elischer, and lo! it spake thus: > > > On Mon, 3 May 2004, Kevin A. Pieckiel wrote: > > > I want to modify sys/param.h to increase the value of MAXLOGNAME. I know > I've done exactly this.. > > edit /usr/src/sys/param.h There's another #define in another header you have to edit. I'll think of it in a minute... Ah; UT_NAMESIZE in include/utmp.h. Used to do that all the time on 2.x.x to get 16 char usernames 8-) -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" From owner-freebsd-hackers@FreeBSD.ORG Wed May 5 20:50:13 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0BC416A4CE for ; Wed, 5 May 2004 20:50:13 -0700 (PDT) Received: from seed.net.tw (sn16.seed.net.tw [139.175.54.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 418C143D49 for ; Wed, 5 May 2004 20:50:11 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.121.140] (port=65291 helo=chihiro.leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.23:1) id 1BLZtV-0009HK-Ej; Thu, 06 May 2004 11:49:57 +0800 Received: from localhost (localhost [127.0.0.1]) by chihiro.leafy.idv.tw (Postfix) with ESMTP id 9F936306; Thu, 6 May 2004 11:49:56 +0800 (CST) Received: from chihiro.leafy.idv.tw ([127.0.0.1]) by localhost (chihiro.leafy.idv.tw [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 97049-01; Thu, 6 May 2004 11:49:56 +0800 (CST) Received: by chihiro.leafy.idv.tw (Postfix, from userid 1000) id F40EF305; Thu, 6 May 2004 11:49:55 +0800 (CST) Date: Thu, 6 May 2004 11:49:55 +0800 From: leafy To: "Matthew D. Fuller" Message-ID: <20040506034955.GA97226@chihiro.leafy.idv.tw> References: <20040503230418.GA25019@SDF.LONESTAR.ORG> <20040506034446.GA29198@over-yonder.net> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <20040506034446.GA29198@over-yonder.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at leafy.idv.tw cc: freebsd-hackers@freebsd.org cc: "Kevin A. Pieckiel" cc: Julian Elischer Subject: Re: Editing /usr/include/*.h? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 03:50:13 -0000 On Wed, May 05, 2004 at 10:44:46PM -0500, Matthew D. Fuller wrote: > There's another #define in another header you have to edit. I'll > think of it in a minute... > > Ah; UT_NAMESIZE in include/utmp.h. > > Used to do that all the time on 2.x.x to get 16 char usernames 8-) > > -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Would it be possible to adjust these to get 32 char usernames? People with very long names in a corporate environment would love to have this. Jiawei -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming From owner-freebsd-hackers@FreeBSD.ORG Wed May 5 23:57:57 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CB6816A4CE for ; Wed, 5 May 2004 23:57:57 -0700 (PDT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EF1E43D45 for ; Wed, 5 May 2004 23:57:57 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc12) with ESMTP id <2004050606574601400js65te>; Thu, 6 May 2004 06:57:56 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id XAA75856; Wed, 5 May 2004 23:57:45 -0700 (PDT) Date: Wed, 5 May 2004 23:57:45 -0700 (PDT) From: Julian Elischer To: leafy In-Reply-To: <20040506034955.GA97226@chihiro.leafy.idv.tw> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: "Kevin A. Pieckiel" cc: "Matthew D. Fuller" Subject: Re: Editing /usr/include/*.h? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 06:57:57 -0000 On Thu, 6 May 2004, leafy wrote: > On Wed, May 05, 2004 at 10:44:46PM -0500, Matthew D. Fuller wrote: > > There's another #define in another header you have to edit. I'll > > think of it in a minute... > > > > Ah; UT_NAMESIZE in include/utmp.h. > > > > Used to do that all the time on 2.x.x to get 16 char usernames 8-) > > > > -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network > Would it be possible to adjust these to get 32 char usernames? People > with very long names in a corporate environment would love to have this. yes we used 32 char names on the interjet. > > Jiawei > -- > "Without the userland, the kernel is useless." > --inspired by The Tao of Programming > From owner-freebsd-hackers@FreeBSD.ORG Thu May 6 00:00:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9942916A4CE for ; Thu, 6 May 2004 00:00:01 -0700 (PDT) Received: from seed.net.tw (sn15.seed.net.tw [139.175.54.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F65B43D58 for ; Thu, 6 May 2004 00:00:01 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.121.140] (port=61055 helo=chihiro.leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.23:1) id 1BLcrJ-000G9T-P1; Thu, 06 May 2004 14:59:53 +0800 Received: from localhost (localhost [127.0.0.1]) by chihiro.leafy.idv.tw (Postfix) with ESMTP id 0345D306; Thu, 6 May 2004 14:59:53 +0800 (CST) Received: from chihiro.leafy.idv.tw ([127.0.0.1]) by localhost (chihiro.leafy.idv.tw [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 96984-06; Thu, 6 May 2004 14:59:52 +0800 (CST) Received: by chihiro.leafy.idv.tw (Postfix, from userid 1000) id 8369A300; Thu, 6 May 2004 14:59:52 +0800 (CST) Date: Thu, 6 May 2004 14:59:52 +0800 From: leafy To: Julian Elischer Message-ID: <20040506065952.GA7514@chihiro.leafy.idv.tw> References: <20040506034955.GA97226@chihiro.leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at leafy.idv.tw cc: freebsd-hackers@freebsd.org cc: "Kevin A. Pieckiel" cc: "Matthew D. Fuller" Subject: Re: Editing /usr/include/*.h? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 07:00:01 -0000 On Wed, May 05, 2004 at 11:57:45PM -0700, Julian Elischer wrote: > > Would it be possible to adjust these to get 32 char usernames? People > > with very long names in a corporate environment would love to have this. > yes we used 32 char names on the interjet. What is the disadvantage of using 32 char names as default? (ie, can this go into HEAD?) Jiawei -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming From owner-freebsd-hackers@FreeBSD.ORG Thu May 6 00:57:28 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1ACD716A4CE for ; Thu, 6 May 2004 00:57:28 -0700 (PDT) Received: from fbsd.lv (fbsd.lv [159.148.95.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0D0E43D39 for ; Thu, 6 May 2004 00:57:27 -0700 (PDT) (envelope-from artis@fbsd.lv) Received: by fbsd.lv (Postfix, from userid 10000) id D9D44C12A; Thu, 6 May 2004 10:57:25 +0300 (EEST) Date: Thu, 6 May 2004 10:57:25 +0300 From: Artis Caune To: freebsd-hackers@freebsd.org Message-ID: <20040506075725.GA1056@fbsd.lv> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Subject: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 07:57:28 -0000 Is it correct to use code like this instead of copyin() / copyout() ? Kernel module gets pointer to structure which resides in userland memory space and modify it directly!!! > userland: ioctl(tp_fd, TP_GET_TP_STATS, &tp_stats) > kernel: tp_stats->hooked = hooked; (freebsd 5.x, KLD) ----- START userland ----- #define TP_GET_TP_STATS _IOR('D', 200, struct tp_stats_s) struct tp_stats_s { int hooked; u_short policer_active_pipes; } tp_stats; if (ioctl(tp_fd, TP_GET_TP_STATS, &tp_stats) != -1) { printf("Traffic Policer is %s\n", tp_stats.hooked ? "enabled" : "disabled"); printf("statistics:\n"); printf(" %-30s%u\n", "pipes hash table depth", tp_stats.policer_pipes_hash_depth); printf(" %-30s%u\n", "active pipes", tp_stats.policer_active_pipes); } else fprintf(stderr, "IOCTL error\n"); ----- END userland ----- ----- START kernel ----- static int tp_dev_ioctl (dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td) { switch (cmd) { case TP_GET_TP_STATS: err = get_tp_stats((struct tp_stats_s *)addr); break; ... } static int get_tp_stats (struct tp_stats_s *tp_stats) { TP_LOCK; tp_stats->hooked = hooked; /* hash depth will be gone in -release, just for debug */ tp_stats->policer_pipes_hash_depth = policer_pipes_hash_depth; tp_stats->policer_active_pipes = policer_get_active_pipes(); TP_UNLOCK; return (0); } ... ----- END kernel ----- thanks, -- Artis From owner-freebsd-hackers@FreeBSD.ORG Wed May 5 08:29:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 356A416A4CE for ; Wed, 5 May 2004 08:29:17 -0700 (PDT) Received: from dongle.eease.com (dns3.eease.com [216.52.200.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0F7843D1F for ; Wed, 5 May 2004 08:29:16 -0700 (PDT) (envelope-from mark@eease.com) Received: from [10.0.0.5] (p-5.eease.com [10.0.0.5] (may be forged)) by dongle.eease.com (8.12.10/8.12.10) with SMTP id i45FT34a069117; Wed, 5 May 2004 15:29:03 GMT (envelope-from mark@eease.com) In-Reply-To: <200405042321.AA82575904@acenet.co.za> References: <200405042321.AA82575904@acenet.co.za> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Mark Wolgemuth Date: Wed, 5 May 2004 11:29:03 -0400 To: cole@acenet.co.za X-Mailer: Apple Mail (2.613) X-Spam-Status: No, hits=-104.9 required=5.0 tests=BAYES_00,USER_IN_WHITELIST autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on dongle.eease.com X-Mailman-Approved-At: Thu, 06 May 2004 05:03:29 -0700 cc: freebsd-hackers@freebsd.org Subject: Re: SIG_IGN X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2004 15:29:17 -0000 On May 5, 2004, at 12:21 AM, Cole wrote: > Hey > > Im writing a threaded program to handle connections coming from squid. > And > the program is working fine, except that i cant seem to set > signal(SIGPIPE, > SIG_IGN) > It doesnt give any errors when performing that command, and then when i > check to see what SIGPIPE is set to, it apparently isnt SIG_IGN. > Are you using pthreads? Signal handling with the threads is tricky. Is SIG_IGN set before child threads are launched? You should use the pthread interface to handle it. int laststate, lasttype; sigset_t sigs; sigemptyset(&sigs); sigaddset(&sigs, SIGPIPE); pthread_sigmask(SIG_BLOCK, &sigs, NULL); pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &laststate); > So i started to search google and i did find a page where guys had the > same > problem, but that was on linux and not FreeBSD. > > Im running FreeBSD 4.8-RELEASE > gcc version 2.95.4 20020320 [FreeBSD] > > If anyone has any ideas please let me know. > Thanks > /Cole > > > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Thu May 6 08:37:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4EF816A4CE for ; Thu, 6 May 2004 08:37:02 -0700 (PDT) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4188843D60 for ; Thu, 6 May 2004 08:37:01 -0700 (PDT) (envelope-from stb@lassitu.de) Received: from [IPv6:::1] (schlepper [212.12.50.230]) by schlepper.zs64.net (8.12.10/8.11.1) with ESMTP id i46Fax7D087591; Thu, 6 May 2004 17:36:59 +0200 (CEST) (envelope-from stb@lassitu.de) In-Reply-To: <20040503231123.GA50427@xor.obsecurity.org> References: <409024D6.7090800@parc.com> <20040429000158.GA61693@xor.obsecurity.org> <4096630F.9080500@parc.com> <20040503231123.GA50427@xor.obsecurity.org> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <3646925C-9F73-11D8-A0EE-000A95C893E4@lassitu.de> Content-Transfer-Encoding: 7bit From: Stefan Bethke Date: Thu, 6 May 2004 17:36:58 +0200 To: Kris Kennaway X-Mailer: Apple Mail (2.613) cc: hackers@freebsd.org Subject: Re: kmem_malloc crashes running FreeBSD 5.2.1-RELEASE-p5 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 15:37:02 -0000 Am 04.05.2004 um 01:11 schrieb Kris Kennaway: > I'm pretty sure it's just a matter of the right tuning. All I needed > to do was to add this on my heavily loaded 4GB machine: > > options VM_KMEM_SIZE_MAX=419430400 #400MB Thanks, that appears to have resolved the issue. I encountered no more panics even with heavy cvs up and ports builds in multiple jails simultaneously. -- Stefan Bethke Fon +49 170 346 0140 From owner-freebsd-hackers@FreeBSD.ORG Thu May 6 09:40:07 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBAA116A4CE for ; Thu, 6 May 2004 09:40:07 -0700 (PDT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF61143D53 for ; Thu, 6 May 2004 09:40:07 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 1023 invoked from network); 6 May 2004 16:40:07 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 6 May 2004 16:40:07 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i46Ge3Ct005446; Thu, 6 May 2004 12:40:03 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Thu, 6 May 2004 11:09:48 -0400 User-Agent: KMail/1.6 References: <20040506075725.GA1056@fbsd.lv> In-Reply-To: <20040506075725.GA1056@fbsd.lv> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200405061109.48244.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Artis Caune Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 16:40:08 -0000 On Thursday 06 May 2004 03:57 am, Artis Caune wrote: > Is it correct to use code like this > instead of copyin() / copyout() ? > Kernel module gets pointer to structure > which resides in userland memory space > and modify it directly!!! No, that's probably bogus. > > userland: ioctl(tp_fd, TP_GET_TP_STATS, &tp_stats) > > kernel: tp_stats->hooked = hooked; > > (freebsd 5.x, KLD) > > > ----- START userland ----- > > #define TP_GET_TP_STATS _IOR('D', 200, struct tp_stats_s) > > struct tp_stats_s { > int hooked; > u_short policer_active_pipes; > } tp_stats; > > if (ioctl(tp_fd, TP_GET_TP_STATS, &tp_stats) != -1) { > > printf("Traffic Policer is %s\n", > tp_stats.hooked ? "enabled" : "disabled"); > printf("statistics:\n"); > printf(" %-30s%u\n", "pipes hash table depth", > tp_stats.policer_pipes_hash_depth); > printf(" %-30s%u\n", "active pipes", > tp_stats.policer_active_pipes); > } else > fprintf(stderr, "IOCTL error\n"); > > ----- END userland ----- > > > > ----- START kernel ----- > > static int > tp_dev_ioctl (dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread > *td) { > switch (cmd) { > case TP_GET_TP_STATS: > err = get_tp_stats((struct tp_stats_s *)addr); > break; > ... > } > > static int > get_tp_stats (struct tp_stats_s *tp_stats) > { > TP_LOCK; > tp_stats->hooked = hooked; > /* hash depth will be gone in -release, just for debug */ > tp_stats->policer_pipes_hash_depth = policer_pipes_hash_depth; > tp_stats->policer_active_pipes = policer_get_active_pipes(); > TP_UNLOCK; > > return (0); > } > ... > ----- END kernel ----- > > > > thanks, -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu May 6 14:35:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96C1316A4CE for ; Thu, 6 May 2004 14:35:20 -0700 (PDT) Received: from duchess.speedfactory.net (duchess.speedfactory.net [66.23.201.84]) by mx1.FreeBSD.org (Postfix) with SMTP id 5BBB343D1D for ; Thu, 6 May 2004 14:35:19 -0700 (PDT) (envelope-from ups@tree.com) Received: (qmail 28671 invoked by uid 89); 6 May 2004 21:25:59 -0000 Received: from duchess.speedfactory.net (66.23.201.84) by duchess.speedfactory.net with SMTP; 6 May 2004 21:25:58 -0000 Received: (qmail 17565 invoked by uid 89); 6 May 2004 21:04:17 -0000 Received: from unknown (HELO tree.com) (66.23.216.50) by duchess.speedfactory.net with SMTP; 6 May 2004 21:04:17 -0000 Received: from tree.com (localhost [127.0.0.1]) by tree.com (8.9.3/8.9.3) with ESMTP id RAA12984; Thu, 6 May 2004 17:03:54 -0400 Message-Id: <200405062103.RAA12984@tree.com> X-Mailer: exmh version 2.0.2 To: Artis Caune In-Reply-To: Message from Artis Caune of "Thu, 06 May 2004 10:57:25 +0300." <20040506075725.GA1056@fbsd.lv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 06 May 2004 17:03:54 -0400 From: Stephan Uphoff cc: freebsd-hackers@freebsd.org Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 21:35:20 -0000 Artis Caune wrote: > Is it correct to use code like this > instead of copyin() / copyout() ? > Kernel module gets pointer to structure > which resides in userland memory space > and modify it directly!!! The copyout() is just hidden. The ioctl request codes are magic and contain the size of the argument and if the argument should be copied in/out by the kernel ioctl function. ( see ioctl(td, uap) in sys_generic.c ) Stephan > > userland: ioctl(tp_fd, TP_GET_TP_STATS, &tp_stats) > > kernel: tp_stats->hooked = hooked; > (freebsd 5.x, KLD) > > > ----- START userland ----- > > #define TP_GET_TP_STATS _IOR('D', 200, struct tp_stats_s) > > struct tp_stats_s { > int hooked; > u_short policer_active_pipes; > } tp_stats; > > if (ioctl(tp_fd, TP_GET_TP_STATS, &tp_stats) != -1) { > > printf("Traffic Policer is %s\n", > tp_stats.hooked ? "enabled" : "disabled"); > printf("statistics:\n"); > printf(" %-30s%u\n", "pipes hash table depth", > tp_stats.policer_pipes_hash_depth); > printf(" %-30s%u\n", "active pipes", > tp_stats.policer_active_pipes); > } else > fprintf(stderr, "IOCTL error\n"); > > ----- END userland ----- > > > > ----- START kernel ----- > > static int > tp_dev_ioctl (dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td) > { > switch (cmd) { > case TP_GET_TP_STATS: > err = get_tp_stats((struct tp_stats_s *)addr); > break; > ... > } > > static int > get_tp_stats (struct tp_stats_s *tp_stats) > { > TP_LOCK; > tp_stats->hooked = hooked; > /* hash depth will be gone in -release, just for debug */ > tp_stats->policer_pipes_hash_depth = policer_pipes_hash_depth; > tp_stats->policer_active_pipes = policer_get_active_pipes(); > TP_UNLOCK; > > return (0); > } > ... > ----- END kernel ----- > > > > thanks, > > -- > Artis > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Thu May 6 15:49:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 049BB16A4CE for ; Thu, 6 May 2004 15:49:37 -0700 (PDT) Received: from nfs.engel-kg.com (mail.engel-kg.com [62.80.41.218]) by mx1.FreeBSD.org (Postfix) with SMTP id ADDB643D3F for ; Thu, 6 May 2004 15:49:35 -0700 (PDT) (envelope-from elmar@engel-kg.com) Received: (qmail 53631 invoked from network); 6 May 2004 22:49:34 -0000 Received: from uranus.engel-kg.com (192.168.10.236) by nfs.engel-kg.com with SMTP; 6 May 2004 22:49:34 -0000 Date: Fri, 7 May 2004 00:49:34 +0200 (CEST) From: elmar gerdes To: freebsd-hackers@freebsd.org Message-ID: <20040507004746.C4224@uranus.engel-kg.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: find symbols in loadable kernel module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 22:49:37 -0000 Hi, I'm looking for a mechanism that allows one loadable kernel module to find the symbols of another module, i.e. find a function 'foo' by its name and get the address of it, so I can call it. I've stumbled across kernel objects which should allow me to do this using kobj_lookup_method(), but I haven't found a call to this function anywhere except where it's defined. kernel objects are used for parallel port drivers and sound drivers which use some kind of bus architecture with calls like BUS_ADD_CHILD() et.al. do I also have to use/implement such a bus architecture just to find some functions by their names? Is there a simpler method to just find the functions, or is there some more information on kernel objects (tutorial, simple example ...)? Any help is welcome. Thanx. elmar _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Fri May 7 08:49:04 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7809B16A4CE for ; Fri, 7 May 2004 08:49:04 -0700 (PDT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7143443D5F for ; Fri, 7 May 2004 08:49:01 -0700 (PDT) (envelope-from killing@multiplay.co.uk) Received: from steven ([193.123.241.40]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v7.0.1.R) with ESMTP id md50000189748.msg for ; Fri, 07 May 2004 16:47:11 +0100 Message-ID: <011f01c4344a$f1648ee0$7b07000a@int.mediasurface.com> From: "Steven Hartland" To: References: <20040507004746.C4224@uranus.engel-kg.com> Date: Fri, 7 May 2004 16:49:31 +0100 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.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Spam-Processed: multiplay.co.uk, Fri, 07 May 2004 16:47:11 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 193.123.241.40 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Fri, 07 May 2004 16:47:11 +0100 Subject: make release on 5.1 of 5.2.1 fails with "Bad system call (core dumped)" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2004 15:49:04 -0000 Im sure I must be doing something stupid but I can see what for the file of me cd /usr/5.2/src/release make release \ BUILDNAME=5.2.1-RELEASE-p6 \ CHROOTDIR=/usr/local/release-5.2 \ CVSROOT=/home/ncvs \ RELEASETAG=RELENG_5_2 \ NOPORTS=YES DOC_LANG=en_US.ISO8859-1 \ MAKE_ISOS=1 \ CD_EXTRA_BITS=1 \ WORLDDIR=/usr/src /usr/src, /usr/obj contains a clean built 5.1-RELEASE-p16 world /usr/5.2/src contains a full 5.2.1-RELEASE-p6 src tree Error: echo "echo \">>> make release for i386 finished on \`LC_ALL=C TZ=GMT date\`\"" >> /usr/local/release-5.2/mk chmod 755 /usr/local/release-5.2/mk touch /usr/local/release-5.2/tmp/.skip_ports # Ensure md.ko is loaded if md(4) is not statically compiled into the kernel mdconfig 2>/dev/null *** Error code 1 (ignored) env -i /usr/sbin/chroot `dirname /usr/local/release-5.2/mk` /`basename /usr/local/release-5.2/mk` + trap umount /dev || true 0 + _RELTARGET=doRELEASE + export AUTO_KEYBOARD_DETECT=0 + export BUILDNAME=5.2.1-RELEASE-p6 + export CD_EXTRA_BITS=1 + export DISTRIBUTIONS=base catpages manpages games proflibs dict info doc compat1x compat20 compat21 compat22 compat3x compat4x crypto + export DOC_LANG=en_US.ISO8859-1 + export DOMINIMALDOCPORTS=YES + export FTP_PASSIVE_MODE=YES + export MAKE_ISOS=1 + export NOPORTS=YES + export RELEASETAG=RELENG_5_2 + export RELNOTES_LANG=en_US.ISO8859-1 + export TARGET=i386 + export TARGET_ARCH=i386 + export RELEASEDIR=/R + export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin + export MANBUILDCAT=YES + umount /dev + true Bad system call (core dumped) + mount -t devfs devfs /dev + [ ! -f /tmp/.world_done ] + cd /usr/src + make TARGET_ARCH=i386 TARGET=i386 -DNOCLEAN buildworld + umount /dev Bad system call (core dumped) + true Bad system call (core dumped) *** Error code 140 ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Fri May 7 10:30:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 045D716A4CE for ; Fri, 7 May 2004 10:30:52 -0700 (PDT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51BA943D5C for ; Fri, 7 May 2004 10:30:51 -0700 (PDT) (envelope-from killing@multiplay.co.uk) Received: from steven ([193.123.241.40]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v7.0.1.R) with ESMTP id md50000189989.msg for ; Fri, 07 May 2004 18:28:32 +0100 Message-ID: <01c301c43459$1b0d59d0$7b07000a@int.mediasurface.com> From: "Steven Hartland" To: References: <20040507004746.C4224@uranus.engel-kg.com> <011f01c4344a$f1648ee0$7b07000a@int.mediasurface.com> Date: Fri, 7 May 2004 18:31:18 +0100 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.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Spam-Processed: multiplay.co.uk, Fri, 07 May 2004 18:28:32 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 193.123.241.40 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Fri, 07 May 2004 18:28:36 +0100 Subject: Re: make release on 5.1 of 5.2.1 fails with "Bad system call (coredumped)" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2004 17:30:52 -0000 I knew it had to be something silly WORLDDIR=/usr/src had been typed as WORDDIR=/usr/src So was being ignored :( Dam Steve ----- Original Message ----- From: "Steven Hartland" To: Sent: 07 May 2004 16:49 Subject: make release on 5.1 of 5.2.1 fails with "Bad system call (coredumped)" > Im sure I must be doing something stupid but I can see what for > the file of me > > cd /usr/5.2/src/release > make release \ > BUILDNAME=5.2.1-RELEASE-p6 \ > CHROOTDIR=/usr/local/release-5.2 \ > CVSROOT=/home/ncvs \ > RELEASETAG=RELENG_5_2 \ > NOPORTS=YES > DOC_LANG=en_US.ISO8859-1 \ > MAKE_ISOS=1 \ > CD_EXTRA_BITS=1 \ > WORLDDIR=/usr/src ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Sat May 8 03:08:36 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F87716A4CE; Sat, 8 May 2004 03:08:36 -0700 (PDT) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5ED8D43D41; Sat, 8 May 2004 03:08:35 -0700 (PDT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (8.12.11/8.12.11) with ESMTP id i48A8VbS096762 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 8 May 2004 12:08:31 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.12.11/8.12.5/Submit) id i48A8Vfw096761; Sat, 8 May 2004 12:08:31 +0200 (CEST) Date: Sat, 8 May 2004 12:08:31 +0200 From: Divacky Roman To: hackers@freebsd.org Message-ID: <20040508100831.GA96529@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: current@freebsd.org Subject: bcopy issues... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 May 2004 10:08:36 -0000 Hi anyone has read http://gobsd.com/node/view/9 this seems quite serious and even if it wasnt we should have mmx (+xmm) capable bcopy routines... the code seems to be easily mergeable any comments? Roman Divacky From owner-freebsd-hackers@FreeBSD.ORG Sat May 8 10:10:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25D5616A4CE for ; Sat, 8 May 2004 10:10:38 -0700 (PDT) Received: from avgw.bjut.edu.cn (avgw.bjut.edu.cn [202.112.78.85]) by mx1.FreeBSD.org (Postfix) with SMTP id 91DD443D31 for ; Sat, 8 May 2004 10:10:36 -0700 (PDT) (envelope-from delphij@frontfree.net) Received: from beastie.frontfree.net ([218.107.145.7]) by avgw.bjut.edu.cn (SAVSMTP 3.1.5.43) with SMTP id M2004050901103102895 for ; Sun, 09 May 2004 01:10:31 +0800 Received: from localhost (localhost [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id A1B5D117AB for ; Sun, 9 May 2004 01:10:32 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00459-06 for ; Sun, 9 May 2004 01:10:32 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 1001) id 6BB5C117A2; Sun, 9 May 2004 01:10:31 +0800 (CST) Date: Sun, 9 May 2004 01:10:31 +0800 From: Xin LI To: freebsd-hackers@FreeBSD.org Message-ID: <20040508171031.GA637@frontfree.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-GPG-key-ID/Fingerprint: 0xCAEEB8C0 / 43B8 B703 B8DD 0231 B333 DC28 39FB 93A0 CAEE B8C0 X-GPG-Public-Key: http://www.delphij.net/delphij.asc X-Operating-System: FreeBSD beastie.frontfree.net 5.2-CURRENT FreeBSD 5.2-CURRENT #33: Mon Apr 26 15:10:21 CST 2004 delphij@beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386 X-URL: http://www.delphij.net X-By: delphij@beastie.frontfree.net X-Location: Beijing, China X-Virus-Scanned: by amavisd-new at frontfree.net Subject: FreeBSD 1.1.5.1-R cvs repo archive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 May 2004 17:10:38 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, Hackers I am looking for the source code (if there is somewhere I can find the repository, that would be great) of the last FreeBSD 1.x RELEASE. Is it legal today? And if it is, is it possible for me to obtain a copy over the Internet? I have Google'ed with no luck :-( Thanks in advance! --=20 Xin LI http://www.delphij.net/ See complete headers for GPG key and other information. --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAnRSHOfuToMruuMARArg2AJ4m/5xxrY6UddTAduZBbt3IDD+HgwCfX+ge uRq8NuMEVSRp/6sbCTCzITA= =LnkW -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI-- From owner-freebsd-hackers@FreeBSD.ORG Sat May 8 21:35:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E034E16A4CF for ; Sat, 8 May 2004 21:35:11 -0700 (PDT) Received: from cydem.org (h68-149-254-167.ed.shawcable.net [68.149.254.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2189843D46 for ; Sat, 8 May 2004 21:35:11 -0700 (PDT) (envelope-from soralx@cydem.org) Received: by cydem.org (Postfix/FreeBSD, from userid 426) id 97C873950D; Sat, 8 May 2004 22:35:10 -0600 (MDT) Received: from soralx.cydem.org (h68-149-254-171.ed.shawcable.net [68.149.254.171]) by cydem.org (Postfix/FreeBSD) with ESMTP id 0628938241; Sat, 8 May 2004 22:35:09 -0600 (MDT) From: To: delphij@frontfree.net, freebsd-hackers@FreeBSD.org Date: Sat, 8 May 2004 22:35:07 -0600 User-Agent: KMail/1.5 References: <20040508171031.GA637@frontfree.net> In-Reply-To: <20040508171031.GA637@frontfree.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200405082235.07484.soralx@cydem.org> Subject: Re: FreeBSD 1.1.5.1-R cvs repo archive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 May 2004 04:35:12 -0000 > I am looking for the source code (if there is somewhere I can find > the repository, that would be great) of the last FreeBSD 1.x RELEASE. > Is it legal today? And if it is, is it possible for me to obtain a > copy over the Internet? I have Google'ed with no luck :-( ftp://ftp.ru.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/1.0-RELEASE (although that's not exactly what you're looking for) Timestamp: 0x409DB426 [SorAlx] http://cydem.org.ua/ ridin' VN1500-B2 From owner-freebsd-hackers@FreeBSD.ORG Sat May 8 21:56:07 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A2FA16A4CE for ; Sat, 8 May 2004 21:56:07 -0700 (PDT) Received: from web50902.mail.yahoo.com (web50902.mail.yahoo.com [206.190.38.122]) by mx1.FreeBSD.org (Postfix) with SMTP id 7A0FC43D55 for ; Sat, 8 May 2004 21:56:06 -0700 (PDT) (envelope-from b_oshea@yahoo.com) Message-ID: <20040509045606.49264.qmail@web50902.mail.yahoo.com> Received: from [64.171.21.158] by web50902.mail.yahoo.com via HTTP; Sat, 08 May 2004 21:56:06 PDT Date: Sat, 8 May 2004 21:56:06 -0700 (PDT) From: Brian O'Shea To: Xin LI , freebsd-hackers@FreeBSD.org In-Reply-To: <20040508171031.GA637@frontfree.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: FreeBSD 1.1.5.1-R cvs repo archive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 May 2004 04:56:07 -0000 Hello Xin LI, According to the FreeBSD web site, you can use cvsup to download the source code for almost any version of FreeBSD that ever existed. Check this out: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html#CVSUP-CONFIG-VERS However, CVS branch tags only appear to be listed for versions as far back as RELENG_2_2_0_RELEASE. Does anybody know if earlier versions are accessible via cvsup? Good luck, -brian --- Xin LI wrote: > Hello, Hackers > > I am looking for the source code (if there is somewhere I can find > the repository, that would be great) of the last FreeBSD 1.x RELEASE. > Is it legal today? And if it is, is it possible for me to obtain a > copy over the Internet? I have Google'ed with no luck :-( > > Thanks in advance! > -- > Xin LI http://www.delphij.net/ > See complete headers for GPG key and other information. > > > ATTACHMENT part 2 application/pgp-signature __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover From owner-freebsd-hackers@FreeBSD.ORG Sat May 8 23:46:29 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6E0016A4CE for ; Sat, 8 May 2004 23:46:29 -0700 (PDT) Received: from mail016.syd.optusnet.com.au (mail016.syd.optusnet.com.au [211.29.132.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5228C43D1D for ; Sat, 8 May 2004 23:46:28 -0700 (PDT) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) i496fIA31540; Sun, 9 May 2004 16:41:18 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1])i496fIRu064355; Sun, 9 May 2004 16:41:18 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.12.10/8.12.10/Submit) id i496fHjq064354; Sun, 9 May 2004 16:41:17 +1000 (EST) (envelope-from peter) Date: Sun, 9 May 2004 16:41:17 +1000 From: Peter Jeremy To: "Brian O'Shea" Message-ID: <20040509064117.GA58822@server.vk2pj.dyndns.org> References: <20040508171031.GA637@frontfree.net> <20040509045606.49264.qmail@web50902.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040509045606.49264.qmail@web50902.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 1.1.5.1-R cvs repo archive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 May 2004 06:46:29 -0000 On Sat, May 08, 2004 at 09:56:06PM -0700, Brian O'Shea wrote: >However, CVS branch tags only appear to be listed for versions as >far back as RELENG_2_2_0_RELEASE. Does anybody know if earlier >versions are accessible via cvsup? CVSup just uses CVS tags so you can pull down the code associated with any tag in the repository. The /usr/ncvs repository includes all the FreeBSD releases back to RELEASE_2_0 (and prior 2.x development). A quick way to check the tags that are available would be to look at http://cvsweb.freebsd.org/src/ and look at the "show only tag" pull- down at the bottom of the page. As part of the BSD vs AT&T settlement, all the *BSD releases had to move to the 4.4BSD/lite distribution. In the case of FreeBSD, 1.x was "encumbered" and had to be expunged from the repository. FreeBSD 2.x was developed from 4.4BSD/lite in a separate CVS repository (hence the 'n'). Since SCO (in a previous incarnation) released the old Unix source code, the FreeBSD 1.x repository could probably now be legally made available. A number of FreeBSD old-timers have admitted to still having copies of the 1.x repository but I don't know that anyone has put it up on the WEB. (Even if the FreeBSD project doesn't want to put it up, I suspect The Unix Historical Society would be happy to add it to their archives). Peter