int fd = open("/dev/mem", O_RDWR);
present = (unsigned char *)mmap(0,
getpagesize(),
PROT_READ|PROT_WRITE,
MAP_SHARED,
fd,
0x22400000);
if ((*present & 1) == 0)
{
printf("Converter not present
");
exit(1);
}
1) What does '&' operator mean in the preceding code?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…