Linux-Development-Sys Digest #949, Volume #7     Tue, 13 Jun 00 13:13:20 EDT

Contents:
  Re: Kernel loadable modules... (David Steuber)
  difference between kmalloc and vmalloc (Jieun Lee)
  Kernel routing (Thilo =?iso-8859-1?Q?Gro=DFmann?=)
  Dynamic linking shared library ([EMAIL PROTECTED])
  How to mount floppey drive ? ("Robert")
  Re: CBB5055C Visio for Linux (Nix)
  Re: mmap on /dev/kmem: sample code? (Nix)
  Re: linux vs unix? (Nix)
  Re: Dynamic linking shared library (Markus)
  Re: How to mount floppey drive ? (Edu)
  Re: Kernel loadable modules... (John Gluck)
  Re: usleep & threads (Brian Lalor)
  Interrupt for parallel port on 4 pins? (fprintf)
  Re: how can i use ab program ? usage is difficult. (Ratz)
  Process path (Gaetan Quentin)
  Re: LINUX Pthreads (Minghui Jiang)
  Re: usleep & threads (Kaz Kylheku)
  Good Basic compiler for linux? ("dave")
  Re: Dynamic linking shared library ("Nera")
  Re: Good Basic compiler for linux? (Kaz Kylheku)
  Re: How to mount floppey drive ? (Lac Hao Viet)

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

Crossposted-To: comp.os.linux.misc
Subject: Re: Kernel loadable modules...
From: David Steuber <[EMAIL PROTECTED]>
Date: Tue, 13 Jun 2000 07:00:00 GMT

[EMAIL PROTECTED] (Dances With Crows) writes:

' For this reason, they can't expect to just throw out one binary module and
' hope to keep Linux users satisfied.  The thing for them to do would be to
' keep the source for their module around and grab the latest kernel source
' every couple of months, then try to build their module against that source
' and make it available for download/whatever as "foomodule-2.2.19.o".  This
' would allow users to stay with reasonably current kernels, and allow
' companies to protect their oh-so-precious intellectual property.

What you say makes sense.  And those bastards do consider their
'inellectual' property to be precious.  Has anyone been successful
getting the information necessary to write a driver for the Logitech
QuickCam VC ( USB camera ) yet?  Pulling teeth from an angry tiger is
much, much easier! :-(.

How close is epsilon to zero?

-- 
David Steuber   |   Hi!  My name is David Steuber, and I am
NRA Member      |   a hoploholic.

All bits are significant.  Some bits are more significant than others.
        -- Charles Babbage Orwell

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

From: Jieun Lee <[EMAIL PROTECTED]>
Subject: difference between kmalloc and vmalloc
Date: Tue, 13 Jun 2000 16:12:31 +0900

I have studied about linux kernel(ver. 1.0)... and I didn't understand
the difference kmalloc and vmalloc." In kmalloc, it service the
allocation of the real memory. but in vmalloc, it used to allocate the
kernel linear space. " What's mean?
I think the vmalloc can allocate only the linear space of "kernel".. and
then the kmalloc can allocate only the user linear space? ... I was
confused.. please help me..


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

From: Thilo =?iso-8859-1?Q?Gro=DFmann?= <[EMAIL PROTECTED]>
Subject: Kernel routing
Date: Tue, 13 Jun 2000 09:51:20 +0200

Hello,

I am writing a device driver for an ip-router card. What I need is
access to the kernel routing table. If I insmod my driver I get a
message unresolved kernel symbol rt_hash_table. My question: Can I get
access to the kernel routing table via rt_hash_table? How? Or is there a
function, where I can get a pointer from, onto the kernel routing table?
I am using Suse Linux 6.1 with Kernel 2.2.14.

MfG Thilo

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

From: [EMAIL PROTECTED]
Subject: Dynamic linking shared library
Date: Tue, 13 Jun 2000 08:04:11 GMT

Hello

Can I load and link shared library (.so) dynamically the same way as
using
LoadLibrary and GetProcAddress
under Win32?

Thanks in advance

Dmitry



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

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

From: "Robert" <[EMAIL PROTECTED]>
Crossposted-To: linux.help,comp.os.linux.development.apps,comp.os.linux.setup
Subject: How to mount floppey drive ?
Date: Tue, 13 Jun 2000 09:55:08 GMT

Hi all
I have installed linux redhat 6.0 with KDE  in my computer i have little
dificulity to mount floppey drive in my computer.

I am getting erro as mount: you must specify the file type when i am using
the commad :  mount /dev/fd0 /mnt

i am also getting error as mount: /dev/fd0  is not a valid block when i am
using the command
mount -t ext2 /dev/fdo /mnt

Please helpe me if you know how to do it

Thanks in advance Robert



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

From: Nix <$}xinix{[email protected]>
Subject: Re: CBB5055C Visio for Linux
Date: 13 Jun 2000 03:12:55 +0100

[EMAIL PROTECTED] writes:

>   Embrace the new Standard in Computer Aided design - Linux CAD !

Oh, for God's sake, not you buggers *again*.

Go *away*, purveyors of Bad Software.

Furrfu.

-- 
> ... knowing the alignment of Orcs in AD&D.
Doubleword.
  --- David Jacoby and Greg Andrews in the Monastery

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

From: Nix <$}xinix{[email protected]>
Subject: Re: mmap on /dev/kmem: sample code?
Date: 13 Jun 2000 03:03:13 +0100

[EMAIL PROTECTED] (Emmanuel Dreyfus) writes:

> Nix <$}xinix{[email protected]> wrote:
> 
> > > I'm looking for some sample code that mmap an area of /dev/kmem in a
> > > user process, in order to understand what's wrong with my code. 
> > 
> > If you want to do this, it is usually a mistake; you should export the
> > information from the kernel in another way (a device or /proc
> > node). This is *very* much less fragile, easier to maintain, and more
> > secure.
> 
> Could you explain me how this way of doing it is fragile, hard to
> maintain and unsecure?

Compared to the other methods, you mean?

Fragile --- because you have to find System.map (and *assume* it is the
same as the running kernel, it is hard to check) in order to map
addresses to symbols. You can't use /proc/ksyms unless you only need to
look at exported symbols. Both of these are nonportable, of course.

Hard to maintain --- grokking around in /dev/kmem is *always* harder
than other methods. You have to track changes in the format of
/dev/ksyms/System.map, changes in the precise location of symbols,
changes in the names of variables...

Insecure --- your process can now read /dev/kmem. That means it can
acquire arbitrary data from out of kernel memory. That's a security
problem and a half, which would vanish completely if you used /proc,
mmap()ing a /dev node, or anything else.

In practice you'll probably want to mmap() a /dev node, because that's
doable on Unices without /proc (eg your BSD port).

-- 
> ... knowing the alignment of Orcs in AD&D.
Doubleword.
  --- David Jacoby and Greg Andrews in the Monastery

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

From: Nix <$}xinix{[email protected]>
Subject: Re: linux vs unix?
Date: 13 Jun 2000 10:40:09 +0100

[EMAIL PROTECTED] (Kaz Kylheku) writes:

> Linux is software.
> 
> UNIX is a set of standards owned by The Open Group;
> see http://www.unix-systems.org/single_unix_specification_v2/
> 
> A software system which implements these standards can be certified
> by The Open Group and then its vendor can use the UNIX trademark.

But, er, Linux *doesn't* implement those standards.

Not all of them, anyway; all of streams, msg_*(), sem_*()...

-- 
> ... knowing the alignment of Orcs in AD&D.
Doubleword.
  --- David Jacoby and Greg Andrews in the Monastery

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

From: Markus <[EMAIL PROTECTED]>
Subject: Re: Dynamic linking shared library
Date: Tue, 13 Jun 2000 14:44:26 +0200

the concept is the same. 
man dlopen, man dlsym

Markus

[EMAIL PROTECTED] wrote:
> 
> Hello
> 
> Can I load and link shared library (.so) dynamically the same way as
> using
> LoadLibrary and GetProcAddress
> under Win32?
> 
> Thanks in advance
> 
> Dmitry
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.

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

From: Edu <[EMAIL PROTECTED]>
Crossposted-To: linux.help,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: How to mount floppey drive ?
Date: Tue, 13 Jun 2000 14:49:34 -0400

If you are trying to mount a DOS disk try:

mount -t msdos /dev/fd0 /mnt/floppy

or

mount -t vfat /dev/fd0 /mnt/floppy

Bye

Robert wrote:

> Hi all
> I have installed linux redhat 6.0 with KDE  in my computer i have little
> dificulity to mount floppey drive in my computer.
>
> I am getting erro as mount: you must specify the file type when i am using
> the commad :  mount /dev/fd0 /mnt
>
> i am also getting error as mount: /dev/fd0  is not a valid block when i am
> using the command
> mount -t ext2 /dev/fdo /mnt
>
> Please helpe me if you know how to do it
>
> Thanks in advance Robert


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

From: John Gluck <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: Kernel loadable modules...
Date: Tue, 13 Jun 2000 10:14:48 -0400

David Steuber wrote:

> [EMAIL PROTECTED] (Dances With Crows) writes:
>
> ' For this reason, they can't expect to just throw out one binary module and
> ' hope to keep Linux users satisfied.  The thing for them to do would be to
> ' keep the source for their module around and grab the latest kernel source
> ' every couple of months, then try to build their module against that source
> ' and make it available for download/whatever as "foomodule-2.2.19.o".  This
> ' would allow users to stay with reasonably current kernels, and allow
> ' companies to protect their oh-so-precious intellectual property.
>
> What you say makes sense.  And those bastards do consider their
> 'inellectual' property to be precious.  Has anyone been successful
> getting the information necessary to write a driver for the Logitech
> QuickCam VC ( USB camera ) yet?  Pulling teeth from an angry tiger is
> much, much easier! :-(.
>
> How close is epsilon to zero?
>
> --
> David Steuber   |   Hi!  My name is David Steuber, and I am
> NRA Member      |   a hoploholic.
>
> All bits are significant.  Some bits are more significant than others.
>         -- Charles Babbage Orwell

I find it difficult to understand this concept of drivers for hardware being
"intellectual property".
The whole point behind providing a driver is to sell hardware. The more
operating systems a manufacturere's hardware can be used with, the more
hardware they can sell.
Spreading around the knowledge of how to write drivers for a particular rodent
or camera means that the manufacturer gets free development and a larger
market. This translates to dollars on their bottom line.
Unfortunately, there are braindead individuals in the marketing departments who
feel that making available information about registers and such will allow
competitors to copy their hardware. The logic of this escapes me. Anyone who
wants to copy your hardware will take it apart and figure out what makes it
tick.
Furthermore, with the rate at which technology changes, any device is obsolete
fairly quickly so it would seem that free developer services would be a good
thing.

I guess the thing to do would be boycott manufacturers who don't co-operate
with open-source developers and only purchase from those who do. As Linux
becomes more main stream the clout of the open-source community will increase
and our boycotts will be more meaningful.
We can also suggest to those who use windows that they choose alternative
hardware. That is hardware from manufacturers who support open-source. After
all they may be more likely to provide support to their users.

BTW is there a web site that lists all co-operative and unco-operative
manufacturers????

--
John Gluck  (Passport Kernel Design Group)

(613) 765-8392  ESN 395-8392

Unless otherwise stated, any opinions expressed here are strictly my own
and do not reflect any official position of Nortel Networks.




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

From: Brian Lalor <[EMAIL PROTECTED]>
Subject: Re: usleep & threads
Date: 13 Jun 2000 10:11:57 -0400

"David B. van Balen" <[EMAIL PROTECTED]> writes:

> Is the linux usleep(3) thread-safe?

I believe all glibc functions are thread-safe.

--
Brian Lalor, Web Honkey
netDrives, Inc.
[EMAIL PROTECTED]
607-272-5650 x7167

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

Subject: Interrupt for parallel port on 4 pins?
From: fprintf <[EMAIL PROTECTED]>
Date: Tue, 13 Jun 2000 09:05:20 -0700

I am looking at the various documentation I can find on
programming for the parallel port about coding for interrupts.
I have a slot car timing system that repeatedly polls the
parallel port for "events".  I have been told that if I could
figure out a way to do so, using interrupts would be *far* more
efficient.  I can understand that it would be, however I am
looking at the value of 4 pins on my parallel port, one of which
is Pin 10 - which is the pin that generates the interrupt.  I
cannot just look at activity on Pin 10 to generate my interrupt
- I need to look at any/all pins.

Is it possible to designate activity on pins 10, 11, 12 and 15
to generate an interrupt?  If not, is there a better way to
monitor activity on those pins other than a constantly cycling
do loop?

do
{
  inb()
  if (activity) process function
}

Thanks!
Stuart


* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!


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

From: Ratz <[EMAIL PROTECTED]>
Subject: Re: how can i use ab program ? usage is difficult.
Date: Tue, 13 Jun 2000 18:16:03 +0200

Hi,

Just a little addon:

> >
> >Usage : ab [options] [http://]hostname[:port]/path
> >

Have a look at the correct syntax: 
It tells you to put at least a slash after your
URL, which indeed is the correct syntax for a
URL. Therefor:

> >
> >web]# ab -n 100 http://www.myhome.com
> >ab : invalid URL

ab -n 100 http://www.myhome.com/
should work.
 
> I got the same error! However when I entered
> 
> ab -n 100 http://linux2.johnmckown.net/index.html

what if you disable this?
 
> I got good information. So you must tell "ab" what page you want. The "normal"
> default is "index.html".

in most of the cases :)
 
regards,

Roberto Nibali, ratz

-- 
mailto: `echo [EMAIL PROTECTED] | sed 's/[NOSPAM]//g'`

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

From: Gaetan Quentin <[EMAIL PROTECTED]>
Subject: Process path
Date: Tue, 13 Jun 2000 18:22:16 +0200

Hello, i would like to know how to get the process full filename in the
process itself?

 must i check in the PATH variable  and check all combinaisons of
filenames?




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

From: Minghui Jiang <[EMAIL PROTECTED]>
Subject: Re: LINUX Pthreads
Date: Tue, 13 Jun 2000 11:23:30 -0500

Linux threads (as far as 2.2 kernel) are implemented via clone(), it is
not exactly a thread in the true sense, more like a process because each
thread takes up an entry in the process table. Since NR_TASKS is by
default 512 in /usr/src/linux/include/linux/tasks.h, if you creat more
threads than that, you might have trouble. Try to change NR_TASKS to a
larger value and recompile the kernel, or monitor the number of threads
created by your server and force it within the limit by ignoring extra
requests.

Ming


On 9 Jun 2000, Abdel-Fatah Bounaira wrote:

> 
> I am currently working on a project which consists of developing a switch
> system.
> This system is able to receive messages via TCP/IP and then route them on
> the basis of its routing table.
> 
> To increase the performance of this tool, this system has been implemented
> using
> pthread on LINUX.
> 
> This system is a classical server.  It creates a listening socket and each
> time it 
> receives a message it creates a thread to deal with the new message.
> 
> However, it crashes after receiving 1500 messages.  I loaded the core and
> the 
> workshop highlighted a line of the code which consists of a malloc.
> I know that there is no memory leak because I checked it.
> 
> - Is there any limitations on multithreading on LINUX?
>   For instance the number of thread running concurrently
> 
> - Do I have to add a specific pthread function within the program to avoid
> any core
>   dump?
> 
> If anyone can help me, I will be more than grateful.
> 
> Thanks,
> 
> [EMAIL PROTECTED] 
> 
> 


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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: usleep & threads
Reply-To: [EMAIL PROTECTED]
Date: Tue, 13 Jun 2000 16:28:35 GMT

On 13 Jun 2000 10:11:57 -0400, Brian Lalor <[EMAIL PROTECTED]> wrote:
>"David B. van Balen" <[EMAIL PROTECTED]> writes:
>
>> Is the linux usleep(3) thread-safe?
>
>I believe all glibc functions are thread-safe.

Perhaps you are unfamiliar with beasties like gethostbyname(), inet_ntoa() and
strtok().

-- 
#exclude <windows.h>

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

From: "dave" <[EMAIL PROTECTED]>
Subject: Good Basic compiler for linux?
Date: Tue, 13 Jun 2000 12:35:36 -0400

I manage a small team of VB programmers and I am looking for a Basic
Compiler and IDE for Linux. I have seen Xbasic and some others but they are
quite the quality I am looking for. I need a complete commercial package
with available support. Anyone know of such a product?

thanks
[EMAIL PROTECTED]



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

From: "Nera" <[EMAIL PROTECTED]>
Subject: Re: Dynamic linking shared library
Date: Wed, 14 Jun 2000 00:52:48 +0800

Hello

    Can anyone tell me the concept of dll?

Nera

Markus <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> the concept is the same.
> man dlopen, man dlsym
>
> Markus
>
> [EMAIL PROTECTED] wrote:
> >
> > Hello
> >
> > Can I load and link shared library (.so) dynamically the same way as
> > using
> > LoadLibrary and GetProcAddress
> > under Win32?
> >
> > Thanks in advance
> >
> > Dmitry
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.



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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Good Basic compiler for linux?
Reply-To: [EMAIL PROTECTED]
Date: Tue, 13 Jun 2000 16:51:55 GMT

On Tue, 13 Jun 2000 12:35:36 -0400, dave <[EMAIL PROTECTED]> wrote:
>I manage a small team of VB programmers and I am looking for a Basic
>Compiler and IDE for Linux. I have seen Xbasic and some others but they are
>quite the quality I am looking for. I need a complete commercial package
>with available support. Anyone know of such a product?

Maybe your team should give BASIC a rest and learn some other programming
language like Python, Java or C++.

Nobody should use BASIC past the age 14.

-- 
#exclude <windows.h>

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

From: Lac Hao Viet <[EMAIL PROTECTED]>
Crossposted-To: linux.help,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: How to mount floppey drive ?
Date: Tue, 13 Jun 2000 16:47:20 GMT

did you format your floppy with ext2? or it's ibm format?

In article <0yn15.7888$[EMAIL PROTECTED]>,
  "Robert" <[EMAIL PROTECTED]> wrote:
> Hi all
> I have installed linux redhat 6.0 with KDE  in my computer i have
little
> dificulity to mount floppey drive in my computer.
>
> I am getting erro as mount: you must specify the file type when i am
using
> the commad :  mount /dev/fd0 /mnt
>
> i am also getting error as mount: /dev/fd0  is not a valid block when
i am
> using the command
> mount -t ext2 /dev/fdo /mnt
>
> Please helpe me if you know how to do it
>
> Thanks in advance Robert
>
>


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

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


** 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