Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >System Management


    

Blue Forest http://www.lslnet.com at 3:18 p.m. on August 18, 2006


I/O] on the [emergency operation of the (report code). ! !

Look at code :
#include<stdio.h>;
#include<stdlib.h>;
#include "Sys/io.h>;
#include "Linux/ioport.h>;

Int base=0x210; //base address
Int X :
Int main ()
  {
X=check_region (0x210,0x8);

If (x==0)
  {
Request_region (0x210,0x8 "AC1082");
Int nDI;
NDI=inb (0x216);
  }
Else printf ( "ERROR");

Return 0
}

I want to I/O operate, I wonder if the above in the right way?
In translation, suggested that the following errors :
/tmp/ccqsb5EC.o (. Text+0x1b) : In function `main ':
: Undefined reference to `ioport_resource '
/tmp/ccqsb5EC.o (. Text+0x20) : In function `main ':
: Undefined reference to `__check_region '
/tmp/ccqsb5EC.o (. Text+0x58) : In function `main ':
: Undefined reference to `ioport_resource '
/tmp/ccqsb5EC.o (. Text+0x5d) : In function `main ':
: Undefined reference to `__request_region '
Collect2 : ld returned 1 exit status

This is how it all about? That is not to #include "linux/ioport.h>; the first document?

I/O] on the [emergency operation of the (report code). ! !

C-fat version of the bar. . .

I/O] on the [emergency operation of the (report code). ! !

I/O] on the [emergency operation of the (report code). ! !

Now there is no control over the use of ioperm was!

I/O] on the [emergency operation of the (report code). ! !

Now there is no control over the use of ioperm was!

I/O] on the [emergency operation of the (report code). ! !

Request_region advantage of the above, the problem of the place ah?



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com