OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:13 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: C++ Handling Objects System Wide
PostPosted: Thu Apr 06, 2017 10:49 am 
Offline
Member
Member
User avatar

Joined: Fri Aug 07, 2015 6:13 am
Posts: 1134
dozniak wrote:
So, are you content with using
Code:
::
or you will have to instantiate TTY just to satisfy your whim desire to use
Code:
.
?


That is a tough one! The dot is so much more satisfying. I absolutely adore it.

_________________
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader


Top
 Profile  
 
 Post subject: Re: C++ Handling Objects System Wide
PostPosted: Thu Apr 06, 2017 11:21 am 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 1925
Location: Athens, GA, USA
A this point I think you need to consider just how many things in the kernel itself actually needs to use a virtual TTY at all - mind you, I am aware that you were just using that as an example, but I suspect it is relevant in general.

Sticking to the console for the nonce, just what do you expect will need a virtual TTY? The only driver that should have access to the console is the console driver itself. The same applies to the disk drivers. You might want a logging operation for those and other drivers, but whether two or more share a single log would depend on several factors, and a TTY interface is probably no the best choice anyway (enough of the logging operations are shared that it would make more sense to let the logger do most of the text generation, and give the processes using the logger a more structured interface than a simple stream). As I already said, the userland console handling would need a separate API simply by dint of having to cross the system call boundary.

So that leaves the question, just what are you expecting to have to share all these things? I think you'll find that a lot of the things you are expecting to need them are things which should be touching them in the first place.

_________________
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group