Skip to contentSkip to conversation

difference between ports

DISCUSSION so usp 3 participants 3 messages Jul 7, 2004

lore
Share & tools
lore

so usp

author
#0 lore raw

Hi,

I would like to know if there are any difference between I/O ports such as serial port, parallel port, keyboard and ide from those ones used by network interface, such as ssh, ftp, http and telnet. Both can be accessed by check_region(), request_region() and release_region() functions? If not, what functions can be used to access those ports in kernel mode?

Thanks

_______________________________________________________
Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/

#1 lore raw
Quoted 7 lines · you

I would like to know if there are any difference between I/O ports such as serial port, parallel port, keyboard and ide from those ones used by network interface, such as ssh, ftp, http and telnet. Both can be accessed by check_region(), request_region() and release_region() functions? If not, what functions can be used to access those ports in kernel mode?

ehmm .. you are a bit confused I guess ..
you are confusing at least 3 different meanings of the term "port"... kernel functions you cite refer to the I/O ports (different from serials, parallels and keyborad)

Signature · 4 lines
<?php echo '       Emiliano `AlberT` Gabrielli       '."\n".
           '  E-Mail: AlberT_AT_SuperAlberT_it  '."\n".
           '  Web:    http://SuperAlberT.it  '."\n".
'  IRC:    #php,#AES azzurra.com '."\n".'ICQ: 158591185'; ?>
#2 lore raw
In reply to so usp
Quoted 11 lines · On Wed, 7 Jul 2004, [iso-8859-1] so usp wrote:

Hi,

I would like to know if there are any difference between I/O ports such as serial port, parallel port, keyboard and ide from those ones used by network interface, such as ssh, ftp, http and telnet. Both can be accessed by check_region(), request_region() and release_region() functions? If not, what functions can be used to access those ports in kernel mode?

Thanks

The word 'port' can mean anything from a place where one docks ships to some other kinds of 'terminals'.

In the nomenclature of input and output connections, we use the term 'port' for some network addressing component as well as some hardware addressing component. These are not related. Also so-called "serial ports" and "parallel ports" are not related either. They just mean "connection". It is best to think of a port as a "thing". In other words it has so many meanings that you need to have more information to complete the indentity.

A I/O port to which you refer is something that is unique to Intel CPU architecture. You can connect hardware to so-called "ports" (addresses) where you can access it with "in" and "out" instructions. Other architectures address hardware using "read" and "write" instructions (with slightly different wording) just as though the hardware was a section of memory. Intel machines also provide this mechanism and, in so doing, it's called "memory-mapped I/O".

The network port is a number used as a kind of sub-address. For instance, you will receive this email on port 25, regardless of your email address.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
Note 96.31% of all statistics are fiction.