[lkml]   [2001]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectinb() and outb()
Hi, all

I wrote a simple program with inb() and outb().
However, it reports the segmentation error when
running it.

The code follows as:
#include <asm/io.h>

#define LPT 0x378

void write_LPT(unsigned char byte)
outb(byte, LPT);

int main()
printf("Value:%c", inb(LPT));




Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:03    [W:0.146 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site