ioperm question

From: spyros (sninos_at_ee.duth.gr)
Date: 06/15/03


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



Relevant Pages

  • Re: USB001 Virtual printer port vs USB002 Local port vs USB003 Virtual printer port ????
    ... This might get a bit confusing. ... A virtual port is a port that is setup as a link in software to what ... The virtual port "virtual0001" might or might not connect to USB Port 1 ... printer drivers in the early days of CPM, Apple dos, MSdos, and dot matrix ...
    (microsoft.public.windowsxp.print_fax)
  • Re: (RSPoliticsW) Rush: Dubai says "Thanks, but no thanks."
    ... politicians STILL don't trust them..... ... This whole thing has just been very confusing and scary: ... BTW - the NYTimes apparently has discovered that the NY and NJ Port ...
    (rec.sport.pro-wrestling)
  • Re: Internet Time Synch
    ... >>> until I set up port forwarding. ... >>> Kerry ... >> Jeeze, this is ridiculous. ... >> it's so confusing I think I'll go back to setting the time with my ...
    (microsoft.public.windowsxp.general)
  • Re: Internet Time Synch
    ... >> until I set up port forwarding. ... > Jeeze, this is ridiculous. ... > it's so confusing I think I'll go back to setting the time with my ... Kerry ...
    (microsoft.public.windowsxp.general)
  • Re: ioperm question
    ... A port is an adress in the separate address space used for devices ... communicating over the system bus. ... > difference between the ports of my,say, parallel connector and my ... Differences between my serial connector and my sound card ...
    (comp.unix.programmer)