Linux-Development-Sys Digest #648, Volume #8     Mon, 16 Apr 01 23:13:08 EDT

Contents:
  Re: The reason for static... (Jonathan Buzzard)
  Changing initial window size ("Abha Ahuja")
  Re: Tizek.com is in dire need of a development team... (Nix)
  82559 Intel Network Chip Driver ("John J Mastrangelo III")
  Re: Who can help me? (J Hayward)
  Re: Capturing raw ethernet frames ([EMAIL PROTECTED])
  Re: help in using initrd when there is no root file system 
([EMAIL PROTECTED])
  Re: Problem compiling PHP 4 to work properly. ([EMAIL PROTECTED])
  Re: Tizek.com is in dire need of a development team... ([EMAIL PROTECTED])
  Re: 82559 Intel Network Chip Driver ([EMAIL PROTECTED])
  Re: Capturing raw ethernet frames ("Cameron Kerr")
  Re: Capturing raw ethernet frames (Grant Edwards)
  Re: Tizek.com is in dire need of a development team... ([EMAIL PROTECTED])
  Re: Capturing raw ethernet frames (Grant Edwards)
  a newbie in linux device driver writing. (philip)
  Can I know pci info. in ISR? (=?EUC-KR?B?sejH/Lyu?=)
  Can I compile device driver which is independent on kernel version? 
(=?EUC-KR?B?sejH/Lyu?=)
  Re: The reason for static... (David)
  Re: The reason for static... (Alexander Viro)
  Re: Can I know pci info. in ISR?

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

From: [EMAIL PROTECTED] (Jonathan Buzzard)
Subject: Re: The reason for static...
Date: Mon, 16 Apr 2001 13:17:06 +0100

In article <[EMAIL PROTECTED]>,
        [EMAIL PROTECTED] (David) writes:
> Hello people,
> 
> I have always wondered why most of the variables and functions in a
> device driver needs to be declared as static. Is there a reason to
> this practice? And when can we safely discard the static tag?
> 

You do know what the static tag does? It should be fairly obvious why
static is used. If not check K&R.

JAB.

-- 
Jonathan A. Buzzard                 Email: [EMAIL PROTECTED]
Northumberland, United Kingdom.       Tel: +44(0)1661-832195

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

From: "Abha Ahuja" <[EMAIL PROTECTED]>
Subject: Changing initial window size
Date: Mon, 16 Apr 2001 15:39:13 GMT

I want to change the initial window size to 4 segments. How can I do this
for a linux kernel. Do I have to modify the ketnel source or is it a
configurable option/setting. Any help in this area is appritiated. Thanks in
advance for any answers.

Atul Ahuja
[EMAIL PROTECTED]




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

From: Nix <$}xinix{$@esperi.demon.co.uk>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Tizek.com is in dire need of a development team...
Date: 16 Apr 2001 19:04:20 +0100

On Mon, 16 Apr 2001, [EMAIL PROTECTED] stipulated:
> If the need is _SO_ desperate, and the destiny for greatness so
> certain, it would seem senseless NOT to spend some of the venture
> capital paying for competent programmers.

The need is *so* desperate that they are engaging in a massive
alphaspam.

> Any venture that plans to altogether defer paying would-be employees
> seems more than a mite shifty to me...

Very so.

-- 
`... and it's not true that I'm closely related to the three-toed
 sloth.' --- Kieran

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

From: "John J Mastrangelo III" <[EMAIL PROTECTED]>
Subject: 82559 Intel Network Chip Driver
Date: Mon, 16 Apr 2001 18:37:59 GMT

Having a problem getting this Supermicroboard (370DE6) to work with the
Intel 82559 network controller using Linux Kernel Ver 2.2 or 2.4. If anyone
has some news please contact me at [EMAIL PROTECTED]



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

From: J Hayward <[EMAIL PROTECTED]>
Subject: Re: Who can help me?
Date: Mon, 16 Apr 2001 11:51:58 -0700

Hello,

ja wrote:
> 
> 
> %cc -o AppTest  AppTest.c
> AppTest.c: In function 'Attempt Connection':
> AppTest.c:253: in compatible type for argument 2 of 'connect'
> AppTest.c: In function 'GetReturnStatus':
> AppTest.c:storage size of 'readFds' isn't known.
> 
>
<snip...>
> int GetReturnStatus ()
> {
>   int    BytesRead;
>   int    selectCount;
> //AppTest.c:storage size of 'readFds' isn't known.
> //How to modify?

I could might be wrong, I'm just a beginning programmer but remove "struct" 
from this line:

>   struct fd_set  readFds;

should read:

fd_set readFds;


Regards,
        Jim H


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

From: [EMAIL PROTECTED]
Subject: Re: Capturing raw ethernet frames
Date: Mon, 16 Apr 2001 18:57:42 -0000

See an older thread in this newsgroup titled
    opening ethernet as a raw device

In short, you do this with appropriate calls on a socket.


On Mon, 16 Apr 2001 20:36:46 +1200 Cameron Kerr <[EMAIL PROTECTED]> wrote:

| Hello, I'm looking for a point in the right direction.
|
| I need to know how I can capture raw ethernet frames from
| an ethernet network. It has do be done programmatically.
|
| Basically, my brief is that I have to basically do all 
| the work of libpcap and bpk (which libpcap uses).
|
| I'm looking through the source of libpcap and various .h
| files, but have found no good starting points.
|
| Can anyone suggest a source of information that might
| help me? I should be able to have a look at "Linux Device
| Drivers" (one of the O'Reilly books) tommorrow or suchlike,
| but is there any other preferably "official" documentation.

-- 
=================================================================
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/     |
=================================================================

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

From: [EMAIL PROTECTED]
Subject: Re: help in using initrd when there is no root file system
Date: Mon, 16 Apr 2001 19:02:39 -0000

On Mon, 16 Apr 2001 14:26:50 +0800 lmc83 <[EMAIL PROTECTED]> wrote:

|     I want to develop system in an evaluation board (edb7212).
|     Currently, the kernel could download into the board and boot up.
|     But it shows "VFS: unable to mount root fs".
|     If I want to use initrd as root file system, how to do ?
|
|     ( There was no root file system currently, the only thing
|       I could do is to download the initrd.img to the specifiled
|       address which is on chip flash )

In a hosted platform like a PC, initrd would be loaded via a loader
such as syslinux, lilo, or grub.  They pass to the kernel either the
preloaded image for initrd, or where to read it (usually floppy).
In your case, I suspect you need to have the initrd image loaded
before the kernel starts, as that would be the way it would be when
the system is ROM'd.  Then it's a matter of passing that info to
the kernel by the code that branches into the kernel startup.

If by chance you get get a Disk-On-Flash, then use that as a device.

-- 
=================================================================
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/     |
=================================================================

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

From: [EMAIL PROTECTED]
Subject: Re: Problem compiling PHP 4 to work properly.
Date: Mon, 16 Apr 2001 19:08:35 -0000

On Sun, 15 Apr 2001 21:29:17 +0800 Mark D <[EMAIL PROTECTED]> wrote:

| I have a very annoying problem when I try to compile and run PHP 4.
|
| I compile with the following options.
|
| rm config.cache
| ./configure --with-apxs --with-imap --with-pgsql --without-mysql --without-k
| erberos
| make clean
| make
| make install
|
| When I try to fire up Apache, I get the following error
|
| Starting httpd: Syntax error on line 872 of /etc/httpd/conf/httpd.conf:
| Cannot load /etc/httpd/modules/libphp4.so into server:
| /etc/httpd/modules/libphp4.so: undefined symbol: gss_mech_krb5
|
| I have loaded all the krb5 rpms, rebuilt the php from scratch, etc, but I
| cannot get rid of this error.
|
| Any ideas?

Where did the library get installed?  Make sure that directory is
listed in the /etc/ld.so.conf file.  Then run "ldconfig" to update
the /etc/ld.so.cache file.  Maybe Apache can be configured with the
location on its own.  See "man dlopen" for a description of the
library call that Apache is probably using so you can get an idea
of what information it has to have (or figure out) to load a shared
library to be a module.

Another option is to not use DSO and compile everything in all at
once.

-- 
=================================================================
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/     |
=================================================================

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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Tizek.com is in dire need of a development team...
Date: Mon, 16 Apr 2001 19:22:30 -0000

In comp.os.linux.development.system [EMAIL PROTECTED] wrote:
| [EMAIL PROTECTED] writes:
|> There is no pay (yet) but once we get going income will be generated
|> through advertisements on the site and various other services which
|> we will offer, and there will surely be enough to go around.
|
|> Brief Overview:
|
|> TizEK.com is destined to be THE premiere Internet portal for techies
|> and geeks alike. We currently need graphic developers, HTML authors,
|> PHP, CGI/PERL authors, and creative minds. To apply, mail us at
|> [EMAIL PROTECTED]
|
| If the need is _SO_ desperate, and the destiny for greatness so
| certain, it would seem senseless NOT to spend some of the venture
| capital paying for competent programmers.
|
| Any venture that plans to altogether defer paying would-be employees
| seems more than a mite shifty to me...

Seems that way to me, too, especially considering their authority
DNS servers don't even know what "tizek.com" is.

And this is the Nth site to claim this, where N is significantly
larger than the number of portal sites that will ever see the light
of visiting users, much less actual ad revenue.

s/is destined/has a wild dream/

Besides, I'm too busy building my own premiere Internet portal for
techies and geeks alike.  At least my DNS works.  At least I have
an MX record.

-- 
=================================================================
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/     |
=================================================================

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

From: [EMAIL PROTECTED]
Subject: Re: 82559 Intel Network Chip Driver
Date: Mon, 16 Apr 2001 19:23:23 -0000

On Mon, 16 Apr 2001 18:37:59 GMT John J Mastrangelo III <[EMAIL PROTECTED]> wrote:

| Having a problem getting this Supermicroboard (370DE6) to work with the
| Intel 82559 network controller using Linux Kernel Ver 2.2 or 2.4. If anyone
| has some news please contact me at [EMAIL PROTECTED]

Can you show us "dmesg" output?

-- 
=================================================================
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/     |
=================================================================

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

From: "Cameron Kerr" <[EMAIL PROTECTED]>
Subject: Re: Capturing raw ethernet frames
Date: Tue, 17 Apr 2001 07:22:50 +1200

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
wrote:

> See an older thread in this newsgroup titled
>     opening ethernet as a raw device
> 
> In short, you do this with appropriate calls on a socket.

This is helpful for half of the stuff I want to do, but
it still goes through the BSD socket library, and probably
also goes through the INET subsystem.

What if someone wanted to write their own protocol based
on ethernet? How would it be done?

-- 
Cameron Kerr -- cameron.kerr @ paradise.net.nz
Praise Slackware, our baud and saviour!
--

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

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: Capturing raw ethernet frames
Date: Mon, 16 Apr 2001 20:26:06 GMT

In article <gFHC6.4545$[EMAIL PROTECTED]>, Cameron Kerr wrote:
>In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>wrote:
>
>> See an older thread in this newsgroup titled
>>     opening ethernet as a raw device
>> 
>> In short, you do this with appropriate calls on a socket.
>
>This is helpful for half of the stuff I want to do, but
>it still goes through the BSD socket library, and probably
>also goes through the INET subsystem.
>
>What if someone wanted to write their own protocol based
>on ethernet? How would it be done?

You write a driver module that installs a handler for the
Ethernet protocol number in question.

-- 
Grant Edwards                   grante             Yow!  I have a TINY BOWL in
                                  at               my HEAD
                               visi.com            

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

From: [EMAIL PROTECTED]
Subject: Re: Tizek.com is in dire need of a development team...
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Date: Mon, 16 Apr 2001 20:32:47 GMT

Nix <$}xinix{$@esperi.demon.co.uk> writes:
> On Mon, 16 Apr 2001, [EMAIL PROTECTED] stipulated:
> > If the need is _SO_ desperate, and the destiny for greatness so
> > certain, it would seem senseless NOT to spend some of the venture
> > capital paying for competent programmers.

> The need is *so* desperate that they are engaging in a massive
> alphaspam.

I see, from other newsgroups, that it is so.

Unfortunately, such vast levels of desperation are suggestive that
it's a "sinking ship" long before it ever gets launched.  

Sort of like a fellow I once knew called Bruno; he'd meet a girl that
somewhat interested him, and almost instantaneously launch into trying
to "offer her a ring."  I don't particularly _like_ calling people
"losers," but anyone that uses the term would feel it hit the mark
with Bruno...
-- 
(reverse (concatenate 'string "gro.mca@" "enworbbc"))
http://vip.hex.net/~cbbrowne/resume.html
Academics denigrating "Popularizers"

"During the rise of the merchant class, the landed aristocracy
understood the value of creating food, but didn't appreciate that food
isn't valuable unless it reaches hungry mouths.

New ideas aren't valuable unless they reach hungry minds. "
-- Mark Miller

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

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: Capturing raw ethernet frames
Date: Mon, 16 Apr 2001 21:53:01 GMT

In article <yzIC6.4088$[EMAIL PROTECTED]>, Grant Edwards wrote:
>In article <gFHC6.4545$[EMAIL PROTECTED]>, Cameron Kerr wrote:
>>In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>>wrote:
>>
>>> See an older thread in this newsgroup titled
>>>     opening ethernet as a raw device
>>> 
>>> In short, you do this with appropriate calls on a socket.
>>
>>This is helpful for half of the stuff I want to do, but
>>it still goes through the BSD socket library, and probably
>>also goes through the INET subsystem.
>>
>>What if someone wanted to write their own protocol based
>>on ethernet? How would it be done?
>
>You write a driver module that installs a handler for the
>Ethernet protocol number in question.

I should have added that "dev_add_pack()" is the kernel
function you call to do this.  I don't know what happens if you
register to handle a protocol number that's already being
handled (e.g. IP or RARP).

-- 
Grant Edwards                   grante             Yow!  But was he mature
                                  at               enough last night at the
                               visi.com            lesbian masquerade?

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

From: philip <[EMAIL PROTECTED]>
Crossposted-To: fa.linux.kernel
Subject: a newbie in linux device driver writing.
Date: Tue, 17 Apr 2001 00:29:43 GMT

Hi! all,
  I am quite new in writing linux device driver. But anyway I have to
take over
and maintain some serial board driver source which was written by
someone else.
  The program flow is ok for me this moment. But still got 2 questions
here.
   1.I found very hard to find the kernel level function specification
which can support
driver writing. for example, like "wake_up_interruptible" or event
scheduling
mechanism description, or "ioremap". Maybe I can find some clue from the
kernel
header files and organize its opertion by myself. But it is that a
correct way?
   Is there any place can give me such fucntion's example and
explanation in one time?
   2.I found the driver code have to register a "callout" serial driver
except registering
the normal serial driver. and the from the linux source I saw the
serial.c do the similar thing.
I wana know why should we put it over there and what is that?
Is any one can tell me how to find out it?
thanks!
philip


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

From: =?EUC-KR?B?sejH/Lyu?= <[EMAIL PROTECTED]>
Subject: Can I know pci info. in ISR?
Date: Tue, 17 Apr 2001 01:03:33 GMT

I must support  multi card of some pci device in driver. (all card is
same..)

Because interrupt is sharable, 2 or 3 card can get same interrupt
number.

So, I want to know pci info - as example, devfn in struct pci_dev -
which

cause this interrupt When ISR is entered.  Thanks for reading, have a
nice day!






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

From: =?EUC-KR?B?sejH/Lyu?= <[EMAIL PROTECTED]>
Subject: Can I compile device driver which is independent on kernel version?
Date: Tue, 17 Apr 2001 01:15:48 GMT

When I compile my device driver, kernel version is put in it.

(I compiled device driver with option -O2 -DMODULE -D__KERNEL__
-DCONFIG_PCI )

So, it doesn't run in different version of kernel.

I can load it with insmod -f , but I want to know how to make kernel
version

independent device driver.  So, it could run  in all version of
kernel.(all 2.2.x version

in kernel) Thanks for reading , have a nice day!





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

From: [EMAIL PROTECTED] (David)
Subject: Re: The reason for static...
Date: Tue, 17 Apr 2001 01:16:38 GMT

First of all, thanks to all who replied. Well, maybe I do not have a
complete understanding of what "static" really does. I know that I
have to use "static" if I want the variable to be remain in memory
even after the function has exited. This also means increase in speed
of execution as the variables do not have to be created next time the
function is entered.

However, why would "static" help in preventing namespace pollution?
Why would declaring "static" make a global variable visible only
within one file? Can anyone please explain to me in greater detail?
(My C programming textbook didn't mention anything more abt "static".)

Thanks,
David



On Mon, 16 Apr 2001 14:48:21 GMT, Chronos Tachyon
<[EMAIL PROTECTED]> wrote:

>On Mon 16 Apr 2001 04:06, David wrote:
>
>> Hello people,
>> 
>> I have always wondered why most of the variables and functions in a
>> device driver needs to be declared as static. Is there a reason to
>> this practice? And when can we safely discard the static tag?
>> 
>> Thanks,
>> David
>> 
>
>The "static" keyword used at a global scope means that a function or 
>variable is only visible within that one file and that it shouldn't be 
>exported.  Any member that should stay private within a driver should be 
>marked static to prevent namespace pollution.  While you could technically 
>get away with discarding the static tag, it *will* eventually bite you as 
>soon as two drivers contain private variables that have the same name.
>
>-- 
>Chronos Tachyon
>Guardian of Eristic Paraphernalia
>Gatekeeper of the Region of Thud
>[Reply instructions:  My real domain is "echo <address> | cut -d. -f6,7"]
>


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

From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: The reason for static...
Date: 16 Apr 2001 22:34:19 -0400

In article <[EMAIL PROTECTED]>,
David <[EMAIL PROTECTED]> wrote:
>However, why would "static" help in preventing namespace pollution?
>Why would declaring "static" make a global variable visible only
>within one file? Can anyone please explain to me in greater detail?

Because that's what it does. Scope of global static objects is one file.
They are not exported.

>(My C programming textbook didn't mention anything more abt "static".)

So throw it into the garbage and get a decent one. K&R would do nicely -
you can always read about the differences introduced by ANSI later.

-- 
Fairy Tails start "Once upon a time."
Army/Sea stories start "This is no shit."
Software proposals start "1.0."
                                Joe Zeff in the Monastery

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

From: [EMAIL PROTECTED] ()
Subject: Re: Can I know pci info. in ISR?
Date: Tue, 17 Apr 2001 02:51:31 -0000

In article <[EMAIL PROTECTED]>,
±èÇü¼®  <[EMAIL PROTECTED]> wrote:
>I must support  multi card of some pci device in driver. (all card is
>same..)
>
>Because interrupt is sharable, 2 or 3 card can get same interrupt
>number.
>
>So, I want to know pci info - as example, devfn in struct pci_dev -
>which
>
>cause this interrupt When ISR is entered.  Thanks for reading, have a
>nice day!

If I'm reading you correctly, you are wanting to know which card caused
the interrupt.  You just have to check the status on all the cards to
see.  

--
http://www.spinics.net/linux

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


** 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 by posting to the
comp.os.linux.development.system newsgroup.

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