Linux-Development-Sys Digest #410, Volume #8     Fri, 12 Jan 01 04:13:11 EST

Contents:
  IP over 1394 ("James Mitchell")
  Re: about pci_find_device function ("ShawnTsao")
  CVS question? (Thomas Gibson)
  [X Window is not operating..... T.T] ("shkwon")
  Re: Extending /proc filesystem on Solaris 7/8? (Kaelin Colclasure)
  How to get data from known memory address of a certain adaptor ? 
([EMAIL PROTECTED])
  Re: parallel-clustering (Tyler Vallillee)
  IPv6 on Linux (IP Guy)
  i386/boot/setup.S -- move_self ("Tom Wang")
  Re: glibc-2.2 testing problem (J�rgen Koslowski)
  Re: Problems with MINORS in Device Driver Writing (Yamazaki Kasparov)
  Re: CVS question? ("Rini van Zetten")
  remote debug kernel (lavender)
  Re: Creating a device associated with a SCSI host adapter ("energon")
  remote kernel debug (lavender)
  "ncurses"--help needed.... ("Nitin")
  Re: [X Window is not operating..... T.T] (Paul Sack)
  How to make a software in UNIX (InterFan)
  Re: Adding a system call via a kernel module (Kasper Dupont)
  Re: about pci_find_device function ("ShawnTsao")

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

From: "James Mitchell" <[EMAIL PROTECTED]>
Subject: IP over 1394
Date: Thu, 11 Jan 2001 17:18:21 -0800

Hi there,

Does anyone know if there's support for IP over IEEE1394 in the new kernel?
If not, does anyone know who's working on it and if they can use newbie
help?

Thanks,

james




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

From: "ShawnTsao" <[EMAIL PROTECTED]>
Subject: Re: about pci_find_device function
Date: Fri, 12 Jan 2001 10:19:12 +0800

Hi

I compilier the kernel module with the options
gcc -D_KERNEL -DMODULE -O2 -c module.c

There are no error when i use the older procedure (pcibios_xxx),
,but i have a problem in my program during compiling
using the new procedure (pci_xxx and struct pci_dev),

Thanks for your help

Shawn Tsao

--
=====================================================
Click here for Free Video!!
http://www.gohip.com/free_video/

Andrey Valik <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> ShawnTsao wrote:
> >
> > Hi
> >
> > sorry, i forgot to write the header
> >
> > #inlcude <linux/module.h>
> > .
> > .
> > #include <linux/modversions.h>
> > .
> > .
> > #include <linux/types.h>
> > #include <linux/kernel.h>
> > #include <linux/pci.h>
> > .
> > .
> > .
> >
> > Thanks for your help
> >
> > Shawn Tsao
>
>
> How about compiler option -D__KERNEL__ - present ?
> --
> +----------------------+
> |   Andrey V. Valik    |
> |  Papillon  Systems   |
> |Mailto:[EMAIL PROTECTED]|
> +----------------------+



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

From: Thomas Gibson <[EMAIL PROTECTED]>
Subject: CVS question?
Date: Fri, 12 Jan 2001 02:38:40 GMT

    I am not aware of a more relevant newsgroup to ask, so here gos:

    I need a script(, command, utility, etc) to produce a list of files
contained in a CVS repository and their version numbers for a specific
release tag.  Can anyone point me in the right direction ?  I know I
could write a script to repetitive call 'cvs log' and parse out the
relevant information but surely this has been done before?

example:

File.c:    1.3
File2.c:    1.4
. 
. 


Thanks in Advance,
Tom


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

From: "shkwon" <[EMAIL PROTECTED]>
Subject: [X Window is not operating..... T.T]
Date: Fri, 12 Jan 2001 12:56:50 +0900

Hi, Guys.. Last night, I installed Kernel 2.4 on my linux machine..
And I compiled it and rebooted.

When the prompt, "%", was displayed, and I typed startx..
Then X windows was up. But I could not type any character and move mouse.
Who can help me to work it properly.... ?
I think that the system is still on, because I can login into the system and
run some program..
Please, help me...




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

From: Kaelin Colclasure <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.solaris
Subject: Re: Extending /proc filesystem on Solaris 7/8?
Date: 11 Jan 2001 21:14:56 -0800

[EMAIL PROTECTED] (Philip Brown) writes:

> On 10 Jan 2001 12:11:26 -0800, [EMAIL PROTECTED] wrote:
> >...
> >Hmmm, now although my *particular* module bends the Linux recommendations
> >and uses a binary representation for *some* of its /proc entries, let me
> >play Devil's advocate for a moment here...
> >
> >What we've seen going on in the networking world for the past few decades
> >is that text-based protocols survive and evolve, while binary ones tend
> >not to fare well.
> 
> That is not as applicable as you seem to thing.
> That argument is on "protocols". You can also use it for file formats.
> 
> But the topic at hand is a **kernel API**.
> Different kettle of fish altogether.

Well, as I mentioned later in the article you snipped, Plan 9 seems to
apply this same philosophy to kernel API's.

> Otherwise I want to hear you argue how OpenGL/X/OSS/ALSA are all failures,
> because they use libraries and binary communications instead of "text based
> protocols" :-)

Obviously I have argued no such thing about *any* binary API /
protocol.  I've merely observed that /proc on Linux et al. "textual"
kernel interfaces have their merits.

-- Kaelin

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

From: [EMAIL PROTECTED]
Subject: How to get data from known memory address of a certain adaptor ?
Date: Fri, 12 Jan 2001 05:23:18 GMT

Hi there,

I need to read a certain memory on a adaptor which

is a Analog-To-Digital convertor. The maker told me

that he will provide BASE address of memory where

I can read digital data from. I have little experience on this.

Any reference will be truely appreciated.

Developing environment is Linux and C++ language.


[EMAIL PROTECTED]


Sent via Deja.com
http://www.deja.com/

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

From: Tyler Vallillee <[EMAIL PROTECTED]>
Subject: Re: parallel-clustering
Date: Fri, 12 Jan 2001 05:41:37 GMT


Sent by e-mail as well:

For a good parallel clustering solution that is easy to setup, check out 
Mosix: www.mosix.org

See this Byte story about Mosix too:
http://www.byte.com/column/BYT20000925S0005

Good luck,

Tyler

Axel Haenssen wrote:

> Hi Guys,
> I need some Information concerning how to set up a
> parallel-processing-linux-cluster (Beowulf?!Concept). Demanded is an 16
> nodes rack mounted system for mathematical models in Biology. I have to
> come up with a good hardwaresolution within a week and was wondering if
> anybody has setup a system like this and can give me some tips.
> Thanks very much in advance
> Please contact me via email
> Axel
> 



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

From: IP Guy <[EMAIL PROTECTED]>
Subject: IPv6 on Linux
Date: Fri, 12 Jan 2001 01:08:43 -0500

Hi,

Where can I find a detailed document about the IPv6 is implementated on
Linux ? 

I am particularly interested in the data structures used for routing and
forwarding tables. I had a brief look at some linux code and found out
that for IPv4 they used a hash table and for IPv6 some sort of tree
structure but could not figure out the details.

If somebody could elaborate especially on the forwarding tables, it
would be great!

Thank you.

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

From: "Tom Wang" <[EMAIL PROTECTED]>
Subject: i386/boot/setup.S -- move_self
Date: Fri, 12 Jan 2001 07:16:56 GMT

http://lxr.linux.no/source/arch/i386/boot/setup.S#522 (Linux 2.2.17)

linux2.2.17/arch/i386/boot/setup.S line #522

I think the code from "move_self_1" to "end_move_self" will move
CS-DELTA_INITSEG:0 to INITSEG:0 (total "setup_move_size" bytes).
Why take the trouble to do this in two steps, by moving the code above
"move_self_here" first, then the code below it?

Tom Wang

P.S. the following is what i think it want to do:

        if (CS!=SETUPSEG) {
                cli;    // disable interrupts

                // store new SS in DX
                DX = SS;
                AX = CS - DELTA_INITSEG;
                if (DX>=AX) {
                        DX = DX + INITSEG - AX; // i.e. SS-CS+SETUPSEG
                }

                // move CS-DELTA_INITSEG:0 to INITSEG:0 (setup_move_size
bytes)
-->                // TODO: why not do this in one step?
                ES = INITSEG;
                move _DOWNWARD_ from CS-DELTA_INITSEG:setup_move_size-1 to
                        (INITSEG:setup_move_size-1
                        ... INITSEG:move_self_here+0x200);
                // move setup_move_size-move_self_here-0x200 bytes
                // INITSEG:move_self_here+0x200 = SETUPSEG:move_self_here
                goto SETUPSEG:move_self_here;
move_self_here:
                move the rest to INITSEG:move_self_here+0x200-1 ...
INITSEG:0;
                // move move_self_here+0x200 bytes
                DS = SETUPSEG;
                SS = DX;
        }
        // CS==SETUPSEG is true now




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

From: [EMAIL PROTECTED] (J�rgen Koslowski)
Subject: Re: glibc-2.2 testing problem
Date: 12 Jan 2001 07:41:32 GMT

Andreas Jaeger ([EMAIL PROTECTED]) wrote:

: This might be a broken make version since there has to be a binary
: called mtrace.

make is version 3.79.1 (from last July).  I re-built gcc-2.95.2 but
haven't had time yet to re-compile glibc-2.2.  Perhaps on Monday I can
report on how that worked.

-- J�rgen

P.S. I've had no problems with pgcc-2.95.3 before recently switching
over to the newest version pgcc-2.95.2.1.

--
J�rgen Koslowski                If I don't see you no more on this world
ITI, TU Braunschweig               I'll meet you on the next one
[EMAIL PROTECTED]               and don't be late!
http://www.iti.cs.tu-bs.de/~koslowj      Jimi Hendrix (Voodoo Child, SR)

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

From: Yamazaki Kasparov <[EMAIL PROTECTED]>
Subject: Re: Problems with MINORS in Device Driver Writing
Date: Fri, 12 Jan 2001 15:48:10 +0800
Reply-To: [EMAIL PROTECTED]

[EMAIL PROTECTED] wrote:

> In article <[EMAIL PROTECTED]>,
>   [EMAIL PROTECTED] () wrote:
> > In article <93i0kv$u5f$[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]>
> wrote:
> >
> > >Thanks for the reply Ninja, but yes I have tried the Minor macro but
> > >somehow, it returns a 0 every time.  Like I said, its like the inode
> > >structure from the OS is coming back empty.
> >
> > Maybe this is what you are wanting:
> >
> >    MINOR(file->f_dentry->d_inode->i_rdev)
> >
> > --
> > http://www.spinics.net/linux
> >
>
> Hi ellis,
>
> Thanks a million, it works.  Is MINOR(inode->i_rdev); not the way to
> get the minor number from the filesystem, why do I have to go to the
> file structure for it?
>
> Thanks again
> Luke Ng
> Grad Student
> University of Waterloo
>
> Sent via Deja.com
> http://www.deja.com/

Mine is working . My "(MINOR(inode->i_rdev)  gave me  an output of the
Minor number of the device .

I wrote the MINOR(inode->i_rdev)  in my  xxxx_read(........ )

TQ


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

From: "Rini van Zetten" <[EMAIL PROTECTED]>
Subject: Re: CVS question?
Date: Fri, 12 Jan 2001 08:44:11 +0100

there is a cvs newsgroup  : gnu.cvs.help





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

From: lavender <[EMAIL PROTECTED]>
Subject: remote debug kernel
Date: Fri, 12 Jan 2001 15:58:19 +0800

�o�O MIME �榡���h���q�l��C
==============849C2D01560968593D168583
Content-Type: text/plain; charset=big5
Content-Transfer-Encoding: 7bit

hi
we are trying to remote debug kernel
the basic function we need is that :
    no matter how to debug kernel(through RS232 or anything else)

we find some solution in the network, but until now, nothing can satisfy
us

==============849C2D01560968593D168583
Content-Type: text/x-vcard; charset=big5;
 name="lavender.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for lavender
Content-Disposition: attachment;
 filename="lavender.vcf"

begin:vcard 
n:Wu;lavender
x-mozilla-html:FALSE
org:embsol;
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:software engineer
x-mozilla-cpt:;0
fn:lavender Wu
end:vcard

==============849C2D01560968593D168583==


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

From: "energon" <[EMAIL PROTECTED]>
Subject: Re: Creating a device associated with a SCSI host adapter
Date: Fri, 12 Jan 2001 13:40:02 +0530

I too need such an "adapter device" via which I can RESET the
SCSI BUS.

BTW, any clue as to how can I RESET the SCSI BUS for the device
that I have opened ? i.e. via the /dev/sdxx interfaces

I found no ioctl defined for resetting the SCSI BUS.

I was thinking of extracting the "sg" (generic SCSI) device code
and wrap it as an adapter device by adding the required functionality.

Any comments ?

-energon

"Uri Schonfeld" <[EMAIL PROTECTED]> wrote in message
news:93cj26$11q8$[EMAIL PROTECTED]...
> Hey,
>
> I read the code for the linux iSCSI mid-level rather thorourghly, and I
> couldn't find what I needed, hope someone can help me.
>
> I am creating a SCSI low-level driver (that acts something like a virtual
> adapter), and I need to define an ioctl operation for it. I need to be
able
> to perform this ioctl even if there are no devices attached to the host at
> the moment. This means, there is no /dev/sdX or /dev/scdX to open and
ioctl
> on.
>
> I thought of creating a dummy character device, but that seems not to be a
> "clean" solution.
>
> Another thought I had was to simulate a dummy device, but then I'd have to
> simulate all the other operations, wouldn't I?
>
> I cannot be the first one to need this, anyone know of a more standard
> "clean" solution?
> Thank you very much,
>
> Uri T. Schonfeld
> --
> Uri T. Schonfeld




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

From: lavender <[EMAIL PROTECTED]>
Subject: remote kernel debug
Date: Fri, 12 Jan 2001 16:15:09 +0800

�o�O MIME �榡���h���q�l��C
==============A19BB6941DB2F645FFC6F637
Content-Type: text/plain; charset=big5
Content-Transfer-Encoding: 7bit

hi
we are trying to remote debug kernel
the basic function we need is that :
    no matter how to debug kernel(through RS232 or anything else will
do),all
we need is debugging from kernel loading..(bootsect.S or setup.S)

we find some solution in the network, but until now, nothing can satisfy

us. most of them can remote debug through RS232 with gdb, but only when
kernel is
load and setup ok.

can anyone provide me with some other ways that can do what we need?
thank you very much...:)

==============A19BB6941DB2F645FFC6F637
Content-Type: text/x-vcard; charset=big5;
 name="lavender.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for lavender
Content-Disposition: attachment;
 filename="lavender.vcf"

begin:vcard 
n:Wu;lavender
x-mozilla-html:FALSE
org:embsol;
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:software engineer
x-mozilla-cpt:;0
fn:lavender Wu
end:vcard

==============A19BB6941DB2F645FFC6F637==


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

From: "Nitin" <[EMAIL PROTECTED]>
Subject: "ncurses"--help needed....
Date: Fri, 12 Jan 2001 13:41:17 +0530

 Hi,
  I'm using menu library of ncurses library for development of a tool. While
 executing a
 program segmentation fault is coming, and core dumped. After several checks
 I'm not able to find the bug. I'm running on RedHat Linux 6.2 and SuSE
 Linux.

 In the following program while execution of the instruction
 menu[0] = new_menu(myitem);
 segmentation fault is coming...

 Program:
 ------------------------------------------------
 #include<menu.h>
 #include<stdlib.h>
 #include<stdio.h>

 main(){
 char respo[10], act[10];
 int res;
 ITEM * myitem[2];
 MENU *  menu[1];

 if((myitem[0] = new_item("Menu", "love")) == NULL ){
  printf("\n Error on new item");
  exit(1);
 }

 if((myitem[1] = new_item("Menu-2nd", "love")) == NULL ){
  printf("\n Error on 2nd new item");
  exit(1);
 }

 initscr(); /* Initilise the Curses*/

 menu[0] = new_menu(myitem); / * Here segmentation fault is coming......core
 dumped*/

 printf("\n \t Response of new menu is:%d", menu);
 getchar();
 res = post_menu(menu[0]);
 if(res != E_OK){
     sprintf(respo, "Response of post is: %d", res);
     addstr(respo);
     move(5,35);
     addstr(act);
     }

 refresh();
 getch();
 endwin();
 }
 --------------------------------------------------------
 compiled with -lmenu and -lncurses libraries.

 can anyone help me out.....?
 Thanks in advance,
 Nitin




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

From: [EMAIL PROTECTED] (Paul Sack)
Subject: Re: [X Window is not operating..... T.T]
Reply-To: [EMAIL PROTECTED]
Date: Fri, 12 Jan 2001 08:30:06 GMT

In article <93lvd1$f7t$[EMAIL PROTECTED]>, shkwon wrote:
>Hi, Guys.. Last night, I installed Kernel 2.4 on my linux machine..
>And I compiled it and rebooted.
>
>When the prompt, "%", was displayed, and I typed startx..
>Then X windows was up. But I could not type any character and move mouse.
>Who can help me to work it properly.... ?
>I think that the system is still on, because I can login into the system and
>run some program..
>Please, help me...

Did you install devfs? If so, either read
/usr/src/linux/Documentation/filesystems/devfs/README or don't use devfs.
Specifically the part in the README that mentions a certain daemon that you
*must* install first.

-- 
The steady state of disks is full.
                -- Ken Thompson

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

From: [EMAIL PROTECTED] (InterFan)
Subject: How to make a software in UNIX
Date: Fri, 12 Jan 2001 08:47:24 GMT
Reply-To: [EMAIL PROTECTED]

I'm developing a software in UNIX. I want to know how to write a setup
file which can
automaticly install the software. Where to put my main program, doc,
log and config
file, how to make my program know these directories. 

The software is a TCP server. Should the software be a deamon or a
normal program?


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

From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: Adding a system call via a kernel module
Date: Fri, 12 Jan 2001 09:01:22 +0000

Bob Dilworth wrote:
> 
> All:
> 
> Does anyone know the definitive answer to the question of whether or not
> 
> a new system call can be added via a module.  In looking through old
> threads in dejanews I've found that some folks say yes and others say
> no.  I realize that system call numbers are reserved and that adding one
> 
> would require re-numbering it in one's private kernel after installing a
> 
> new version.  Ori Pommerantz's (spelling) Module Programming Guide has
> an example of piggybacking code on an existing system call but this
> isn't
> exactly the same thing.
> 
> So ... can a new call be added through a module and if so how frought
> with peril would it be compared to adding it directly to the kernel and
> re-compiling?
> 
> Thanks in advance!!!!!!!!!
> 
> Bob Dilworth
> Toledo, Ohio
> [EMAIL PROTECTED]

Yes it is posible, but it is not a good idea. In fact it
is a very bad idea, and if you do sooner or later it will
give you lots of trouble.

The symbol table in entry.S has entries numbered from 0
to NR_syscalls, there are unused entries pointing to
sys_ni_syscall(). You could change one of theese to point
to your syscall, but if another module or another kernel
uses the same syscall you start geting trouble. Try
considering what could happen if a syscall does something
completely different from what the program expect, the
program might not even notice because it assumes ENOSYS
in case of missing syscall. Assigning some very large
number does not work either because the syscall table
would need to be expanded to a huge size.

Using an unused entry in the syscall table is OK for your
own testing purposes, but before releasing a module using
this sycall you must convince Linus that he should assign
you an official syscall number.

-- 
Kasper Dupont

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

From: "ShawnTsao" <[EMAIL PROTECTED]>
Subject: Re: about pci_find_device function
Date: Fri, 12 Jan 2001 17:06:04 +0800

Hi all:

Thanks for all of your help.

I do something wrong about the compiler option  __KERNEL__
I type it as _KERNEL_     ^ ^

Now, I can get my hardware resource infomation by using the pci_xxxx
functions.
Thanks Arne for your information
(http://www.linux-mag.com/2000-03/gear_01.html

)

Thanks for your help again.

Shawn Tsao


Andrey Valik <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> ShawnTsao wrote:
> >
> > Hi
> >
> > sorry, i forgot to write the header
> >
> > #inlcude <linux/module.h>
> > .
> > .
> > #include <linux/modversions.h>
> > .
> > .
> > #include <linux/types.h>
> > #include <linux/kernel.h>
> > #include <linux/pci.h>
> > .
> > .
> > .
> >
> > Thanks for your help
> >
> > Shawn Tsao
>
>
> How about compiler option -D__KERNEL__ - present ?
> --
> +----------------------+
> |   Andrey V. Valik    |
> |  Papillon  Systems   |
> |Mailto:[EMAIL PROTECTED]|
> +----------------------+



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


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