Re: doubt about VMA struct

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

 




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.

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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux