Quote:
Originally Posted by
amar20
how the data is supplied to tcp/ip packet from the disk.
how we can trace behavior of that process.
Quote:
Block special files or block devices correspond to devices through which the system moves data in the form of blocks. These device nodes often represent addressable devices such as hard disks, CD-ROM drives, or memory-regions.
First, I suggest you read this on Wikipedia:
Device file system - Wikipedia, the free encyclopedia
The underlying operating systems provides system level calls that permit I/O operations. Without getting into the relationship between the devices, the kernel and the shell, I will simplify by saying, that there are underlying system calls that provide programs access to the disk and other devices, like network devices, their buffers and data structures.
So, depending on your platform (operating system), you need to look at your kernel level system calls that are accessible to the programmer. These APIs are often C programs in most computer systems today.
Another hint: Take a look at this book, for example,
Beginning Linux Programming and learn about system calls.