please let me know how a pointer ( in C / C++ programming language ) can reference to a segment in hard disk, a storage of say upto 1 GB.
In more details i am going to write the signature of a function which will take a pointer as argument and that should point to a segment in hard disk, which can hold upto 1 GB space, instead of passing the pointer pointing to the address, which holds the same amount of storage, on heap I want it to point to hard disk segment. system is Linux, programming languages both C & C++.
You can look into
mmap. This allows to map files into your main memory.