ioperm question
From: spyros (sninos_at_ee.duth.gr)
Date: 06/15/03
- Next message: Peteris Krumins: "Re: select() syscall"
- Previous message: Peteris Krumins: "Re: select() syscall"
- Next in thread: Antoine Mathys: "Re: ioperm question"
- Reply: Antoine Mathys: "Re: ioperm question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 15 Jun 2003 15:10:38 +0300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi all,
i'd like to ask a simple, yet confusing to me, question about
ioperm.ioperm is like this:
#include <unistd.h> /* for libc5 */
#include <sys/io.h> /* for glibc */
int ioperm(unsigned long from, unsigned long num, int turn_on);
where from is the address of the beginning port, num is the number of
bytes and turn_on it the value of the permissions.(but i suppose you
already knew that).
My question is: can someone explain to me what a port is? How many bytes
does it have? How do I know how many ports a device has? Is there a
difference between the ports of my ,say, parallel connector and my
serial one? Differences between my serial connector and my sound card
port? (ok, that's not ONE question but...) I'm totally confused...
So, any ideas? ...someone...plz?
I'd really appreciate if you gave me something like a schematic or
something...
thnx in advance
spyros
- --
student @ D.U.TH.
pub-key: http://dalab.ee.duth.gr/~spyros/my_pub.asc
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0 - not licensed for commercial use: www.pgp.com
iQEVAwUBPuxiOz2QMCA0LA8jAQIZJggAhefYD5CohUQk7u0IJKeNx1ZlxIo14pI/
JktRNNFBb98EAnYpslKZEh3xzFXZiCxKPAMGX1DOlGehZjj1NdD6XUtCFBtTO6Nq
960M9/xWlNMIR/L32gxDjZzY+xipJWdKjsMcYBtHOVjcraBcV6eXNcwF32Pjyj4V
j89qyhcRYh6PWUnsotkRfCmTAw0X2EuJDDj/DjmAnueameAYAwynjBhQ7GYIMC1h
dSKmzVW2K3fLQLrxDybGG/UvgUx/+CrZn2q7ozB1Vtrq/ruh/jIumhtCtltojkE0
oLB6LJ6Kwigjlas4N9ciA4ls/mRdAphG2/lG34N3flotJXzTy1qcJw==
=mmJx
-----END PGP SIGNATURE-----
- Next message: Peteris Krumins: "Re: select() syscall"
- Previous message: Peteris Krumins: "Re: select() syscall"
- Next in thread: Antoine Mathys: "Re: ioperm question"
- Reply: Antoine Mathys: "Re: ioperm question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|