Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

Could I ever want to access the address zero?

10 like 0 dislike
Hello,

The constant 0 is used as the null pointer in C and C++. But as in the question "Pointer to a specific fixed address" there seems to be some possible use of assigning fixed addresses. Is there ever any conceivable need, in any system, for whatever low level task, for accessing the address 0?

If there is, how is that solved with 0 being the null pointer and all?

If not, what makes it certain that there is not such a need?
asked 2 years ago by biswaskeran (70,430 points)

1 Answer

2 like 0 dislike
Memory address 0 is also called the Zero Page. This is populated by the BIOS, and contains information about the hardware running on your system. All modern kernels protect this region of memory. You should never need to access this memory, but if you want to you need to do it from within kernel land, a kernel module will do the trick.
answered 2 years ago by eagles11 (179,830 points)

Related questions

13 like 0 dislike
1 answer
4 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)
11 like 0 dislike
0 answers
asked 2 years ago by biswaskeran (70,430 points)
5 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)
12 like 0 dislike
0 answers