linux - How can I create a fake device file to mimic dev/mem? -


i want control access dev/mem.

in order so, thinking of creating fake dev/mem, processes access instead of actual dev/mem.

my process modify dev/mem depending on changes in fake one.

is possible? if so, how do this?

look @ drivers/char/mem.c, in chr_dev_init(), remove register, class_create, device_create calls. move these calls driver , driver's read/write calls, directly call ones in mem.c


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -