mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Richard B. Johnson" <root@chaos.analogic.com>
To: "so usp" <so_usp@yahoo.com.br>
Cc: linux-kernel@vger.kernel.org
Subject: Re: difference between ports
Date: Wed, 7 Jul 2004 14:09:40 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.53.0407071354160.19059@chaos> (raw)
In-Reply-To: <20040707171452.9714.qmail@web53201.mail.yahoo.com>

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.



      parent reply	other threads:[~2004-07-07 18:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-07 17:14 so usp
2004-07-07 17:50 ` Emiliano 'AlberT' Gabrielli
2004-07-07 18:09 ` Richard B. Johnson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.53.0407071354160.19059@chaos \
    --to=root@chaos.analogic.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=so_usp@yahoo.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®