mirror of
https://github.com/drasko/codezero.git
synced 2026-01-19 14:23:15 +01:00
User pointer validity checks.
Added routines that check whether a user pointer is accessible by the kernel, and if not ask the pager to map-in those pages. I haven't implemented yet the bit that asks the pager for paging-in.
This commit is contained in:
@@ -85,4 +85,7 @@ static inline int in_user()
|
||||
return !in_kernel();
|
||||
}
|
||||
|
||||
int pager_pagein_request(unsigned long vaddr, unsigned long size,
|
||||
unsigned int flags);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user