>
> Open and close are called when a region is created and deleted respectively.
> no_page is used during page faults for locating the pages and
> allocating it if needed etc.
>
> > Does it means accessing a virtual address space for a process is not
> > allowed if open fails or is not allowed?( suppose i do that
> > delibarately in my module ).
>
> if open fails then it should mean that the region is not created how
> would you access it then?
>
IMHO, the region is ALREAY CREATED when open is called, hence open()
method cannot affect the creation / deletion of the region in any way.
Also, there cannot be a "failed" open() call, since the return value
is void. The open is merely called to give the driver a chance to
initialize the region.