From: "Holy Aavu" <holyaavu@gmail.com>
To: Glynn Clements <glynn@gclements.plus.com>
Cc: mikado4vn@gmail.com, linux-c-programming@vger.kernel.org
Subject: Re: Virtual Serial Port
Date: Tue, 28 Mar 2006 11:23:05 +0530 [thread overview]
Message-ID: <bd7767e40603272153n7073ae1eyb76bcfdbda3ae276@mail.gmail.com> (raw)
In-Reply-To: <17448.8455.670409.748372@cerise.gclements.plus.com>
On 3/27/06, Glynn Clements <glynn@gclements.plus.com> wrote:
>
> Holy Aavu wrote:
>
> > > My machine has only one serial port. Now I want to add more *software*
> > > (virtual) serial ports. I also want to make a virtual serial cable
> > > between a real serial port and a virtual one OR between virtual ports.
> > > Is there any way to solve that problem in our universe?
> >
> > I have a doubt... I am not sure if you can have a full working
> > solution to make all programs run using the virtual serial ports.
> > Because, there *might* be some programs which actually use the 'in'
> > and 'out' instructions of the processor directly from a user space
> > program. (After calling iopl/ioperm etc to elevate their I/O
> > privileges to directly use the IO ports) I dont think even a kernel
> > change can help in that case...
> >
> > Is my understanding correct or am I missing something?
>
> 1. Any such programs will only work with "PC-style" serial ports (8250
> and compatible UARTs); they won't work with other serial hardware
> (e.g. multi-port serial cards). Also, such programs would require root
> privilege. Consequently, most programs which use serial ports limit
> themselves to using the /dev/tty* devices and their associated ioctl()
> calls.
>
> 2. You could change the iopl() system call so that it doesn't affect
> the IOPL bits in the EFLAGS register. Instead, you would handle the
> resulting exceptions, trapping attempts to access the UARTs and
> redirecting them to the "virtual UART" driver. The ioperm() system
> call would need similar modifications.
>
Thanks Glynn, that explains a lot!
> --
> Glynn Clements <glynn@gclements.plus.com>
>
prev parent reply other threads:[~2006-03-28 5:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-25 17:49 Virtual Serial Port Mikado
2006-03-25 18:47 ` Jan Engelhardt
2006-03-26 2:23 ` Mikado
2006-03-26 3:27 ` Anderson Lizardo
2006-03-26 9:31 ` Jan Engelhardt
2006-03-26 17:09 ` Mikado
2006-03-26 18:52 ` Petr Vandrovec
2006-03-27 3:29 ` Mikado
2006-03-26 16:07 ` Glynn Clements
2006-03-27 11:25 ` Holy Aavu
2006-03-27 17:29 ` Glynn Clements
2006-03-28 5:53 ` Holy Aavu [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=bd7767e40603272153n7073ae1eyb76bcfdbda3ae276@mail.gmail.com \
--to=holyaavu@gmail.com \
--cc=glynn@gclements.plus.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=mikado4vn@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).