Pagini
Workshops
Parteneri
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
sesiuni:kernel:memory [2012/07/09 01:05] dbaluta [Tasks] |
sesiuni:kernel:memory [2012/07/09 01:06] (current) dbaluta [Tasks] |
||
---|---|---|---|
Line 31: | Line 31: | ||
#* Use the skeleton code from 4-mmap/ and fill in the code in kmmap.c so that: | #* Use the skeleton code from 4-mmap/ and fill in the code in kmmap.c so that: | ||
#** /dev/mmap has support for memory mapping | #** /dev/mmap has support for memory mapping | ||
- | #** implement function ''my_map'' in ''kmmap.c''. Use [[http://lxr.linux.no/linux+v3.4.4/drivers/video/ps3fb.c#L707 | mmap]] as an example. | + | #** Implement function ''my_map'' in ''kmmap.c''. Use [[http://lxr.linux.no/linux+v3.4.4/drivers/video/ps3fb.c#L707 | mmap]] as an example. |
- | #* Create a userspace program that mmaps /dev/my_mmap and reads a page. | + | #** Follow ''TODO's'' lines in ''kmmap.c'' |
+ | #* Create an userspace program ''mmap.c'' that mmaps /dev/my_mmap and reads a page. | ||
+ | #* Check ''mmap.c'' memory mapped areas using ''pmap''. | ||