Is linux a message based kernel?? Help on implementation of

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
dori

Is linux a message based kernel?? Help on implementation of

Post by dori »

???
Im wondering.. and I dont know how to implement my gui ;)


right now Im thinking about using messaging between drivers and the like

like messages from the gui to the video driver,

I already have this kernell that you might have heard of: MMURTL that is message based...

is messaging between the GUI server and the Video Driver and the keyboard and mouse and all others going to work well.. this would mean that the video, gui, keyboard, mouse are integral drivers/services of the kernel

am I right???

Just need some help

also, does the API have anything to do witht he way that the kernel is designed???

I want to use XFree86 and Linux API if possible but with my own implementation of the kernel

I mean to make it very simple and efficient.. extra features added later if ever needed but I mean to make it really efficient.

is XFree86 a driver??? I mean how does it fit in the system?? I think the X server is a server that works on the client server messiging system....

correct me if Im wrong in any of the above and clear up what you think you can please

thanks ;)
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Is linux a message based kernel?? Help on implementation

Post by Pype.Clicker »

imho, Xfree is just another application that runs in user mode. It does not really have message-based API but rather uses the generic i/o system to talk with a low-level driver (framebuffer, etc.)

X applications open a TCP/IP or unix connection to the server and send their requests as bunch of bytes, and also get their response this way. However all this dull job is encapsulated within the xlib.
dori

Re:Is linux a message based kernel?? Help on implementation

Post by dori »

that sounds like a patch/hack rather then a real planned inplementation but seems to work


ok now hows this:
KERNEL
|----------<-------->---------------|
memmeg, taskmag,...drivers(video-><-)-><--GUItask
|->API---------<--->--------------|
|->programs


so the API takes care of carrying msgs from programs to GUI and back(requests...)
The GUI responces and also sends the stuff to drivers..(video)
the GUI gets msgs from drivers(input devices) and replys
the gui also works as a task but not an actual program so it talks to the task manager

thats kind of like having the gui as an in between drivers and tasks.. making it nor a program or a driver... more like a DLL that has to work with EVERYTHING(drivers, taskmag-API, programs/tasks)

does it look right to you

sorry if its sloppy... just need some help with this and the books help but theyre not very clear



AM I MISSING ANYTHING??
thanks

later
dori

Re:Is linux a message based kernel?? Help on implementation

Post by dori »

oh yea, if you got the picture of how MMURTL works in terms of the above(there is no gui) please make a simple diagram


the left ends of the lines are supposed to be pointing at the task manager


thanks
Tim

Re:Is linux a message based kernel?? Help on implementation

Post by Tim »

That ASCII art diagram doesn't make a lot of sense. Here it is in a fixed-width font:

[tt]KERNEL
|----------<-------->---------------|
memmeg, taskmag,...drivers(video-><-)-><--GUItask
|->API---------<--->--------------|
|->programs[/tt]

Could you redraw it so everything lines up, please? And surround it with a [ tt]...[/ tt] block.
dori

Re:Is linux a message based kernel?? Help on implementation

Post by dori »

Just a sec, Ill make it in paint, then u can mod it easily in paint
dori

Re:Is linux a message based kernel?? Help on implementation

Post by dori »

3days_in_darkness.tripod.com/kernel.bmp

cut n paste
gtsphere

Re:Is linux a message based kernel?? Help on implementation

Post by gtsphere »

is that MMURTL book any good?
soilwork

Re:Is linux a message based kernel?? Help on implementation

Post by soilwork »

yes its a very good book... I really suggest you buy it.

Im going to use it as a base for my operating system as its very basic and robust... message based, multitasking, 32bit.. C

I just need to figgure out how to use a C++ compiller with it. if you can help. thanks

later
gtsphere

Re:Is linux a message based kernel?? Help on implementation

Post by gtsphere »

would you be willing to post the code (or a link to it) for the kernel??? that would be so awesome, i actually think my girlfriend is getting me the book for x-mas! :-)
soilwork

Re:Is linux a message based kernel?? Help on implementation

Post by soilwork »

well, that would be illegal...I think.. I dunno, I might

a good thing would be getting the PDF version of the book.. u pay like 20 bucks for it and dl it

but now that they make nice binding, u can get the actual book...

I got one with crappy binding and am pissed off... the binding broke off and I can barely open it.. no way carry it

later
soilwork

Re:Is linux a message based kernel?? Help on implementation

Post by soilwork »

bump
dori

Re:Is linux a message based kernel?? Help on implementation

Post by dori »

again, here is the link to the diagram

3days_in_darkness.tripod.com/kernel.bmp


please coment...
Tim

Re:Is linux a message based kernel?? Help on implementation

Post by Tim »

ERROR
The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://3days_in_darkness.tripod.com:80/kernel.bmp

The following error was encountered:

Invalid URL
Some aspect of the requested URL is incorrect. Possible problems:

Missing or incorrect access protocol (should be `http://'' or similar)
Missing hostname
Illegal double-escape in the URL-Path
Illegal character in hostname; underscores are not allowed
Your cache administrator is webmaster.



--------------------------------------------------------------------------------
Generated Sun, 06 Oct 2002 20:20:55 GMT by proxy4.enta.net (Squid/2.4.STABLE1)

BTW: if you're not getting any responses to a post, don't just write 'bump' replies. If nobody answers, they're either being slow, nobody knows the answer, or nobody wants to reply.
soilwork

Re:Is linux a message based kernel?? Help on implementation

Post by soilwork »

3days_in_darkness.tripod.com:80/kernel.bmp
Post Reply