K
K
Konstantin2021-11-20 18:48:47
Iron
Konstantin, 2021-11-20 18:48:47

Is it possible to access other hardware from a PCI/USB board/device with realtime OS?

Hello.
Let's say I plan to make the device in the form of a board connected via PCI or USB. The board will run realtime OS.
Will it be possible to access other computer hardware? (processor, hard drive, RAM, etc.)
Under the computer can be:
- ATX (Mini-ATX) motherboard for x86 processors
- single-board/SOC for x86 processors, arm

Answer the question

In order to leave comments, you need to log in

6 answer(s)
H
hint000, 2021-11-20
@webmaster

The device can generate interrupts. https://ru.wikipedia.org/wiki/Interrupt
How to respond to these interrupts depends on the device driver. If there is no driver, then perhaps there will be no reaction. Or there will be some standard "stub" handler.
For PCI, you can use the DMA mechanism https://ru.wikipedia.org/wiki/Direct_access_to_memory
. But in this case, control is also carried out by the CPU. A PCI device cannot access anywhere it wants to. Only with the highest permission of the CPU.

A
Armenian Radio, 2021-11-20
@gbg

With proper programming, a device hanging on PCI-e can communicate directly with RAM (via DMA) and directly with another device (for example, this is how Ethernet and disk controllers can communicate) on the same bus.

R
Ronald McDonald, 2021-11-20
@Zoominger

Of course, if you write a driver for the final OS.

B
bkosun, 2015-03-18
@entermix

$categories = array('2', '3');
$where = 'WHERE category regexp "(' . implode('|', $categories) . ')"';

S
Saboteur, 2015-03-18
@saboteur_kiev

Whoever created this table is cancer. Categories are written differently. For example in separate columns. For example in separate bits. For example flags.
In your case, of course, you can do something like
selec t * from table where category ~ '%2% or category ~ '%3%'
but this is cancer.

S
Sergey Semenko, 2015-03-18
@abler98

It's better to remake the database structure, otherwise it's kapets :|

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question