Do filp open

Retired DISLab
이동: 둘러보기, 찾기

http://lxr.free-electrons.com/source/fs/namei.c#L3223

3223 struct file *do_filp_open(int dfd, struct filename *pathname,
3224                 const struct open_flags *op)
3225 {
3226         struct nameidata nd;
3227         int flags = op->lookup_flags;
3228         struct file *filp;
3229 
3230         filp = path_openat(dfd, pathname, &nd, op, flags | LOOKUP_RCU);
3231         if (unlikely(filp == ERR_PTR(-ECHILD)))
3232                 filp = path_openat(dfd, pathname, &nd, op, flags);
3233         if (unlikely(filp == ERR_PTR(-ESTALE)))
3234                 filp = path_openat(dfd, pathname, &nd, op, flags | LOOKUP_REVAL);
3235         return filp;
3236 }
개인 도구
이름공간
변수
행위
둘러보기
구성원
연구
연구실
기타
도구모음
인쇄/내보내기