<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 14, 2015 at 12:40 PM, Shiyao Ma <span dir="ltr">&lt;<a href="mailto:i@introo.me" target="_blank">i@introo.me</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br><br></div>When writing a char device driver, if the &quot;open&quot; slots is left vacant in the file_operations structure, what will happen if &quot;open&quot; is called ?<br></div></div></div></blockquote><div><br></div><div>You can have a loot at chrdev_open() function in  fs/char_dev.c  file.</div><div><br></div><div>regards</div><div>sudip</div></div></div></div>