We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

5

As Jeff says, this is a feature implemented by Bash, not by the kernel. It’s only available to shell scripts or on the shell’s command line; other programs can’t open /dev/tcp/.... To implement this as a kernel module you’d have to provide a new virtual file system. To see this in action, you can combine Bash with netcat. Run nc -l -p 5555 in one ...


2

UP is the administrative state indicator, or what you have configured the NIC to do. The corresponding operational state indicator, or what the NIC has actually been able to do, would be RUNNING. If you see UP but not RUNNING in the ifconfig -a output, it usually means the NIC is not detecting a link from the cable, i.e. the cable is not properly plugged ...


2

There's a good book Linux Device Drivers that is freely available at: https://lwn.net/Kernel/LDD3/ It's a number of years old, so some thing might have changed a little, but the core of what's there should still be helpful. In general, your driver would probably want to register a character device. That device would get a dynamically-assigned major ...


1

The early PCs used to have a maximum of 4 serial ports based on the 8250 UART chip. Going over this limit was possible, but usually took either other hardware implementations or at least special drivers to enable the higher number of ports. The modern 16550A can actually be backwards compatible with those old 8250 chips on both programming and physical ...


Only top voted, non community-wiki answers of a minimum length are eligible