DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st December 2019
attilio attilio is offline
Port Guard
 
Join Date: Jun 2015
Posts: 43
Default documentation about interaction devices-software

Hi.
I would like to understand the general way the dialog between a device and a software happens.
For example, if I write a c program that writes a byte B to a printer, which is the complete travel of B?
I roughly imagine that the program calls a syscall and passes it B, then the syscall does something else.
Does it use a driver and write B in RAM? Where?
Must the device know where B is written?
If yes, who informed it and how?
How does the device read it?
Can the device answer to kernel?
How and where?
And so on,,,
Similar questions for other actions: lighting a pixel, receive
mouse motion information, receive keyboard key pressed information etc etc
Can you suggest me a good lecture about these questions?
I don't have experience about this level of a computer working, but I'm curious.
Thank you in advance.
Have a good day! (In italian: buona giornata!)
Reply With Quote
  #2   (View Single Post)  
Old 21st December 2019
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 344
Default

You are basically talking about programming, various languages can be used.

Low level, such as Assembler, complicated, C/C++ is often used at system level, & then there are the high level scripting type languages, such as Perl & Python.

Suggest you do a search online about computer programming, to get a better idea.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #3   (View Single Post)  
Old 21st December 2019
attilio attilio is offline
Port Guard
 
Join Date: Jun 2015
Posts: 43
Default

Thank you bsd-keith.
I don't want to act directly at low level (by now) by programming. I would like only to understand, for example, what happen in OpenBSD, step by step, when I write "a" and I see it on my monitor, like now while I'm writing.
Where does the signal starting from the keyboard go? At which address in memory is it written? Does the kernel read the information and write it to a special memory of the video card? And so on.
Is there an openbsd documentation concerning about these topics?
Reply With Quote
  #4   (View Single Post)  
Old 21st December 2019
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

ktrace(1)/kdump(1)
Reply With Quote
  #5   (View Single Post)  
Old 21st December 2019
attilio attilio is offline
Port Guard
 
Join Date: Jun 2015
Posts: 43
Default

Thanks ibara
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
documentation comparison? hanzer Other BSD and UNIX/UNIX-like 5 12th May 2016 05:44 PM
ThinkLight interaction bela OpenBSD General 3 11th September 2014 11:01 AM
Report: Open source software quality is better than proprietary software J65nko News 6 28th February 2012 05:33 PM
Wanted: More Documentation divadgnol67 OpenBSD General 5 16th September 2010 09:54 AM
NetBSD Documentation kalimuthu NetBSD General 1 20th July 2010 04:12 PM


All times are GMT. The time now is 02:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick