Questions tagged [character-device]

The tag has no usage guidance.

0
votes
1answer
26 views

make a pseudo device like /dev/random that outputs primes?

/dev/primes is what I want without writing C code just python which I have known and easily written the program. The device file should be similar to /dev/urandom that outputs primes instead of ...
0
votes
1answer
29 views

Send Shift PgUp to the console

With a little help from an answer found here I was able to use below script to send keystrokes to the VGA console /dev/tty1 #!/usr/bin/perl use warnings; use strict; open( my $TTY1 , '>' , '/dev/...
0
votes
0answers
41 views

How to create a new character device under /proc/device file?

I am trying to create a node with mknod /tmp/ttyACM0 c 166 0 command but then No such device or address error returns when I try to open serial port with ttyACM0 because there is no device in proc/...
-2
votes
1answer
59 views

Does the virtual filesystem work on top of character devices and network subsystems?

Does the virtual filesystem work on top of character devices and network subsystems, or just on top of filesystems and block devices? Could you also explain a bit about in what sense "the VFS is ...
3
votes
1answer
393 views

Is a device being a block or character device determined purely by hardware?

From https://unix.stackexchange.com/a/472920/674 A "character device" and "block device" are abstractions, usually used in Unix-style systems in classifying various devices. Is a device being a ...
-2
votes
1answer
86 views

Why is the transfer unit of block devices block not page?

Operating System Concepts says A character-stream device transfers bytes one by one, whereas a block device transfers a block of bytes as a unit. But I heard that the unit of transfer between main ...
0
votes
2answers
176 views

Do “serial ports” or “parallel ports” apply to character devices only, but not to block devices?

From http://haifux.org/lectures/86-sil/kernel-modules-drivers/node10.html A Character ('c') Device is one with which the Driver communicates by sending and receiving single characters (bytes, ...
-4
votes
1answer
56 views

Are there implications between block/character device and random/sequential access? [closed]

Operating System Concepts says: Devices vary on many dimensions, as illustrated in Figure 13.7. • Character-stream or block. A character-stream device transfers bytes one by one, whereas a ...
-1
votes
1answer
292 views

Can filesystems be created only on block devices, but not on character devices?

Can filesystems be created only on block devices, but not on character devices? Can a filesystem be viewed as a block device itself (for example, when programming to use a file system)? My guess is ...