Hi Mohit,

On Wed, Oct 6, 2010 at 9:23 AM, mohit verma <[email protected]> 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 [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to