[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doubt about VMA struct



On 3/21/07, Rajat Jain <rajat.noida.india@xxxxxxxxx> wrote:
>
> 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.


The open() and close() functions are called every time a region is created or deleted.

Did i misinterpret this? I think I did....I think you are correct. Let
me look up some code.
--

Regards,
Sandeep.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ