Re: function do_filp_open() wrapped in open system call

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

 



Hi Mohit,

On Wed, Oct 6, 2010 at 9:23 AM, mohit verma <mohit89mlnc@xxxxxxxxx> wrote:
>
>
>> hi all,
>>   here is  the code
>> static  inline int open_to_namei_flags(int   flag)
>> {
>>            if ((flag +1) & O_ACCMODE )
>
>                      flag++;
>     }
>>
>> i dint get the logic behind this . i mean , what is the need to increase
>> the flag while opening a file?

Did you read the comment block in front of the open_namei_flags function?

It pretty much explains it all.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
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