Linux-Development-Sys Digest #91, Volume #8      Mon, 21 Aug 00 17:13:14 EDT

Contents:
  Re: purify and memory managers ("Paul D. Smith")
  Re: IRDA-Support on Sparc (Robert Resch)
  Re: 3com 3c509 driver ("Quiney, Philip [HAL02:HH00:EXCH]")
  Re: How to implement a embedded linux? (Niels Kristian Jensen)
  PCTel Modems ("William L. Rich Jr.")
  Re: SCSI Tekram 395U (Rene van Paassen)
  Re: Can't use both USB printer and Promise Ultra66 at the same time (Jonathan Kamens)
  Help needed on verInfo project (Lou Grinzo)
  How do I create a var in user space. ("[EMAIL PROTECTED]")
  Re: colour map ([EMAIL PROTECTED])
  Re: colour map (Derek M. Flynn)
  application level vs kernel level coding ? ([EMAIL PROTECTED])
  OSS <-> soundcard driver (Jim Thomas)
  how to insert my protocol into the linux protocol stack? ([EMAIL PROTECTED])
  Re: all threads in a process share the same pid? (Kaz Kylheku)
  Re: Circumventing TIME_WAIT...howto? (Kaz Kylheku)
  Re: all threads in a process share the same pid? ([EMAIL PROTECTED])
  APM BIOS access on TP 600x (Chris)

----------------------------------------------------------------------------

From: "Paul D. Smith" <[EMAIL PROTECTED]>
Subject: Re: purify and memory managers
Date: 21 Aug 2000 00:59:02 -0400
Reply-To: [EMAIL PROTECTED]

%% "Rob Love" <[EMAIL PROTECTED]> writes:

  rl> I have written a fairly big program in C++ that does a bunch of
  rl> dynamic memory allocation. I think that I clean up after myself
  rl> pretty well, but I would like to double check. In college there
  rl> was a program I used to use on the school's Solarises called
  rl> purify. It was a nice program that just threw up a GUI to tell you
  rl> if you had any leaks. I have been searching for it on the web and
  rl> all I can find is Rational's Purify, which is proprietary. It
  rl> might be the case that this is what my school has, I'm not
  rl> sure. Anyway, anyone know where I can find the free purify

There is no free Purify.  Rational's Purify is the only one.

And, you can't get it for Linux, even if you wanted to pay for it.

  rl> maybe another memory management program that is pretty easy to
  rl> use.

There are a few tools available on Linux for C; I'm not sure about C++.
You can use dmalloc, which is an old standard.  Also, there are patches
to GCC to allow it to do array bounds checking, which can be useful.

None of these are as easy to use as Purify; since Purify instruments
your object code you only need to _link_ with it; all the .o's, etc. can
be compiled normally.  Dmalloc et. al. require you to recompile all your
files to get the best coverage (only very basic coverage is available by
just linking the dmalloc library).

-- 
===============================================================================
 Paul D. Smith <[EMAIL PROTECTED]>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
===============================================================================
   These are my opinions---Nortel Networks takes no responsibility for them.

------------------------------

From: Robert Resch <[EMAIL PROTECTED]>
Subject: Re: IRDA-Support on Sparc
Date: Mon, 21 Aug 2000 08:30:41 +0200

Jan Welti wrote:
> 
> It's actually called Prompt for incomplete code/drivers. (It's in the first
> section of the menuconfig or xconfig).

I've activated the development/incomplete drivers...
But Irda doesn't show up...

Robert

------------------------------

From: "Quiney, Philip [HAL02:HH00:EXCH]" <[EMAIL PROTECTED]>
Subject: Re: 3com 3c509 driver
Date: Mon, 21 Aug 2000 08:10:08 +0100

Phong Ho wrote:
> 
> I examine  the file 3c509.c in  /drivers/net  of the kernel. I do not
> see the
> 'register_netdev()' statement.  My understanding is that, a network
> driver must
> register with the kernel using 'register_netdev()' .
> 
> Can anyone let me know why the statement 'register_netdev' is not in the
> file
> 3c509.c?
Hi,

I suspect that is it called from some function referenced by the 3c509
code. Check out the Linux Source cross reference (http://lxr.linux.no/)
to speed things up  - that is you can quickly find where functions are
defined and what calls what. Start with functions called in the
'init_module' function of the driver ;-)

If you search other driver files you will see that some have a call to
register_netdev & some don't...

Regards

Phil Q

-- 

Phil Quiney                             CSIP Demonstrator
[EMAIL PROTECTED]              Nortel Networks,
Telephone: +44 (1279) 402363            London Rd, Harlow,
Fax:       +44 (1279) 402885            Essex CM17 9NA,
                                        United Kingdom.

"This message may contain information proprietary to Northern 
Telecom so any unauthorised disclosure, copying or distribution
of its contents is strictly prohibited."

------------------------------

Crossposted-To: comp.realtime,comp.unix.programmer,tw.bbs.comp.linux
Subject: Re: How to implement a embedded linux?
From: [EMAIL PROTECTED] (Niels Kristian Jensen)
Date: 21 Aug 2000 10:41:18 +0200

[EMAIL PROTECTED] (NTUST) skrev i <8nmvs7$vp$[EMAIL PROTECTED]>:

>hello everbody
>
>    I have got a project about enbedded Linux recently.
>    It's a thin router which is based on Embedded Linux.
>    I confused to how to do that.
>    Because I don't have any experience to embed Linux.
>    So...I wanna get some help or suggestion.
>    Therefore , I list some objectives.
>
>Objectives:
>       1.Based on the evaluation board of VIA-6509 with IDE interface,
>          build thin router software components.
>       2.porting from 80x86 platform to ARM-7 platform.
>       3.porting routing protocols(RIP,OSPF) to embedded Linux.
>       4.porting NAT(network address translator) to embedded.
>       5.protocol software debugging

Have a look at http://www.linuxrouter.org/ 

Best regards,
NKJensen,
Denmark.

------------------------------

From: "William L. Rich Jr." <[EMAIL PROTECTED]>
Subject: PCTel Modems
Date: Mon, 21 Aug 2000 10:28:51 GMT

I know the problem, ME.  I have an NEC Versa 5060X laptop with a PCTel HSP
56kflex PCMCIA modem.  I have no idea how to get it to work with Linux also.
If anyone could help, it would be greatly appreciated.



------------------------------

From: Rene van Paassen <[EMAIL PROTECTED]>
Subject: Re: SCSI Tekram 395U
Date: 21 Aug 2000 12:44:00 +0200


I have got one of these running for my scanner. Works well, see:

http://www.garloff.de/kurt/linux/dc395/

Greetings, 
        Ren�

------------------------------

From: [EMAIL PROTECTED] (Jonathan Kamens)
Crossposted-To: alt.comp.periphs.mainboard.supermicro
Subject: Re: Can't use both USB printer and Promise Ultra66 at the same time
Date: 21 Aug 2000 11:03:40 GMT

For the record, I got a fix from Johannes Erdfelt for this problem:

>You're using the RedHat 2.2 backport which makes unfortunate assumption
>about the I/O port range for USB. This causes problems with many systems
>as the allocated I/O port range is relatively compact, causing conflicts
>like this.
>
>Just add something like this after the headers in uhci.c:
>
>#ifdef pci_resource_len
>#undef pci_resource_len
>#define pci_resource_len(dev, i)       32
>#endif

------------------------------

From: [EMAIL PROTECTED] (Lou Grinzo)
Crossposted-To: alt.os.linux.projects,comp.os.linux,comp.os.linux.development
Subject: Help needed on verInfo project
Date: Mon, 21 Aug 2000 14:07:17 GMT

I'm developing a utility as part of the next release of my
verInfo project (http://www.gizmodrome.com/verinfo.htm),
and I'd like some help in finding useful test cases.

My utility will have to deal with ELF binaries on a very
low level, so I'm trying to find examples of all the
"interesting" variations of the internal arrangement of
an ELF file.  (Specifically, I'm looking for files in 
which the program header table, string section, and
section header table do NOT appear in that order in the
file.  The ELF documentation I have does not say that these
components must appear in this order, but they do in every
program I've found so far.)

I'd like to ask volunteers running Linux on an x86 to do
the following:

1. Download the C source to my elfscan utility from 
http://www.gizmodrome.com/elf_scan.htm.

2. Look at the source code to convince yourself that it
doesn't do anything harmful.  It doesn't--it just looks at
files on your hard drive and displays some messages about 
what it finds.

3. Compile the program ("gcc -o elfscan elfscan.c").

4. Run the program.  It will run for several minutes, 
as it scans your entire directory tree, starting with
/ and skipping only /dev and /proc, examining every 
ELF-format file it can find.

5. Let me know if the program reports any file names.  It
will display a msg like:

PH-SH-Strings case detected for file /root/program_name

for any worthwhile files it finds.  And most important of
all, if you can legally do it, send me a copy of the
program so I can use it in my testing.  (Which is the whole
point of this little exercise, after all.)

(Delete the NOSPAM part of my e-mail address to contact
me.)



Lou



------------------------------

From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: How do I create a var in user space.
Date: Mon, 21 Aug 2000 16:28:34 +0200

Hi,

I'm writing a device driver and would like to allocate memory in user
space.

I'm passing a variable into a function that expects user space .
I'm not looking for large pages of memory,
just primitaves like long and long long.

As i can see vmalloc still allocates in kernal space.

Can any one please help
Richard


------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.x
Subject: Re: colour map
Date: Mon, 21 Aug 2000 10:42:15 -0400

I did... the code looks like :

XParseColor( dpy, attrs.colormap, Spec, &color);

 if (!XAllocColor(dpy, attrs.colormap, &color))
 {
     perror("color map allocation error ");
     cerr << "DAT Presentation : Could not store to colormap\n";
 }

and it keep telling me that it could not store to colormap...  but the
error give is "Success"...

please advise

The Ghost In The Machine wrote:

> In comp.os.linux.development.apps, Gee
> <[EMAIL PROTECTED]>
>  wrote
> on Thu, 17 Aug 2000 12:42:39 -0400
> <[EMAIL PROTECTED]>:
> >Hi, I'm trying to allocate some custom colours into the colour map,
> >using the BX command XParseColor()  but it's not letting me.
> >
> >does anyone know if linux allows you to insert custom colours??
>
> XParseColor doesn't allocate a color in the map; it merely parses it.
> Try XAllocNamedColor if you know it's a name (e.g., "red"), or
> XParseColor folowed by XAllocColor.
>
> 'man XParseColor' for more details.
>
> >
> >thanks
> >
> >Gee
> >
>
> --
> [EMAIL PROTECTED] -- insert random misquote here


------------------------------

From: [EMAIL PROTECTED] (Derek M. Flynn)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.x
Subject: Re: colour map
Date: Mon, 21 Aug 2000 15:48:51 GMT

[EMAIL PROTECTED] wrote:
> I did... the code looks like :
> 
> XParseColor( dpy, attrs.colormap, Spec, &color);
> 
>  if (!XAllocColor(dpy, attrs.colormap, &color))
>  {
>      perror("color map allocation error ");
>      cerr << "DAT Presentation : Could not store to colormap\n";
>  }
> 
> and it keep telling me that it could not store to colormap...  but the
> error give is "Success"...

I think you're confusing errno and X return values.  "Success" is 0, so
XAllocColor didn't return Success if your perror and cerr are printed.

Followups set


------------------------------

From: [EMAIL PROTECTED]
Subject: application level vs kernel level coding ?
Date: Mon, 21 Aug 2000 15:51:59 GMT

in writing network programs (tcp/ip programming)
one can write application level code or kernel code ?

what are the differences between them and their
advantages and disadvantages ? if this is too academic
please point me relevant resources where i could get
more info on this.

thanks all
[EMAIL PROTECTED]


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Jim Thomas <[EMAIL PROTECTED]>
Subject: OSS <-> soundcard driver
Date: Mon, 21 Aug 2000 12:05:08 -0400

I work for a company that builds DSP cards, complete with audio codecs,
etc.  I've been asked to find out what it would take to develop an
OSS-compatible linux device driver for these cards.

So far, I've seen a lot of documentation covering the interface between
a user program and the OSS driver, but nothing that talks about the
interface between OSS and the sound card.  Can anyone share a URL with
me?

Thanks!

-- 
Jim Thomas                            E-mail:     [EMAIL PROTECTED]  
Senior Applications Engineer          Web:     http://www.bittware.com
Bittware, Inc                         Tel:              (703) 779-7770
Reading goes faster if you don't sweat comprehension. - Hobbes

------------------------------

From: [EMAIL PROTECTED]
Subject: how to insert my protocol into the linux protocol stack?
Date: Mon, 21 Aug 2000 17:51:18 GMT

im trying to implement a data link protocol and i wonder how
i can enter this protocol in the kernel protocol stack??
any books or internet sources will be welcome
thanks
ayalon


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: all threads in a process share the same pid?
Reply-To: [EMAIL PROTECTED]
Date: Mon, 21 Aug 2000 19:15:20 GMT

On Sun, 20 Aug 2000 17:11:10 +0200, James Avery <[EMAIL PROTECTED]> wrote:
>On Sat, 19 Aug 2000, Kaz Kylheku wrote:
>
>> It means, effectively, that threads cannot use chdir() (and chroot() as well),
>> except at the start of the program to set a global working directory.  There is
>> no interface in POSIX to even put a lock on the current working directory so
>> that it can be relied on to be stable over a few system calls.
>
>If you need a different working environment, you want a different process.

The Linux kernel gives you a choice; you can do a clone without CLONE_FS to
give each thread its own root and cwd.  It makes sense for a thread to be able
to chdir() independently without affecting other threads.

Also consider that the chdir() system call is needed in avoiding limitations on
the length of a pathname that can be passed in a single file-related system
call.

------------------------------

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Circumventing TIME_WAIT...howto?
Reply-To: [EMAIL PROTECTED]
Date: Mon, 21 Aug 2000 19:51:38 GMT

On Sun, 20 Aug 2000 02:37:11 -0700, Robert Colbert <[EMAIL PROTECTED]> wrote:
>> So what exactly are you complaining about?  If it's that you can't bind
>> to the port, you need to set SO_REUSEADDR.
>
>Rick:
>
>It's not an issue of bind or the reuse of a local address or port. The
>server machine(s) only bind once and continue to run indefinitely until the
>test is stopped. I don't have a problem with bind. The client machines are
>not able to successfully call socket() because the OS's socket table is
>filled with sockets lingering for over two minutes in the TIME_WAIT state.

So what you are saying that there is no available ephemeral port number to
assign to the client because all 65535 of them are in TIME_WAIT?  What error is
socket() returning? You'd think that it would be the connect() that fails.

>I've received another reply here suggesting the passive close. I'm going to
>try that first chance I get on Monday.

The problem is that only one side can do the passive close; usually it is the
server. You would only shift the problem from one side to another.

My suggestion would be to try a more distributed load test. Use more client
machines that each make connections at a slower rate.

Other than that, you could play with the TIME_WAIT duration, which is
determined (in a 2.2.x kernel) by TCP_TWKILL_PERIOD and TCP_TWKILL_SLOTS in
/usr/src/linux/include/net/tcp.h.

--
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: all threads in a process share the same pid?
Crossposted-To: comp.os.linux.development.apps
Date: Mon, 21 Aug 2000 20:10:28 GMT

In comp.os.linux.development.apps Kaz Kylheku <[EMAIL PROTECTED]> wrote:

> The Linux kernel gives you a choice; you can do a clone without
> CLONE_FS to give each thread its own root and cwd.  It makes sense
> for a thread to be able to chdir() independently without affecting
> other threads.

This is wholey a matter of opinion. I mine, it makes much more sense
for threads to share the current working directory. In particluar, if
you call chdir() based on user input in one thread, the logical
assumption is that the user wanted to change his working directory,
not that he wanted to change it "just for this thread"

> Also consider that the chdir() system call is needed in avoiding
> limitations on the length of a pathname that can be passed in a
> single file-related system call.

This is completely wrong. There shouldn't be _any_ case in which
chdir() will accept a pathname longer than open() or close(). If the
kernel does have arbitray limits on other system calls, that's an
entirely seperate misfeature than LinuxThreads.

Some libraries, on the other hand, may be problematical. That's
completely solvable in user space, however.

-- 
Matt Gauthier <[EMAIL PROTECTED]>

------------------------------

From: Chris <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.misc,comp.os.ms-windows.nt,comp.os.ms-windows.nt.misc,comp.os.ms-windows.nt.programmer.misc,comp.os.ms-windows.nt.kernel-mode,alt.linux,comp.sys.ibm.pc.hardware.systems,comp.sys.laptops
Subject: APM BIOS access on TP 600x
Date: Mon, 21 Aug 2000 22:05:14 +0100

I'm looking for a way to access the APM BIOS of a Thinkpad 600x from
NT 4.0 WS. I know that NT doesn't support any power saving modes; on
the other side, the 600x seems to support this as apm.c in the Linux
2.x kernels suggests.

SMAPI as defined by IBM for their Thinkpads and used by Linux tools
such as tpctl doesn't seem to be the answer as it only seems to
support _control_ over the various settings the hardware / BIOS
supports and no functionality to, for example, obtain the remaining
recharging time for the battery (which the fuel gauge from the IBM
tools running on NT _can_ obtain!). As an aside: function 22h (get
power settings) does not seem be supported on my 600x as the SMAPI
invocation returns 53h: function not supported.

I had a quick look around in segment 40h for a jump point into the APM
BIOS under NT (that's what I'm getting from apm.c and apm_bios.h in
the Linux kernel but maybe I'm interpreting this wrong). But no luck
here. Any suggestions how to get the access (real mode or virtual x86)
and jump point for that BIOS extension under NT? Any hints gladly
appreciated!

Answers please in this newsgroup or via email; I'll post a summary
if there are enough replies.

     Chris



------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.development.system) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Development-System Digest
******************************

Reply via email to