title: What happens when a lot of processes open the same special file?
body: <p>For example , I have two processes A and B that try to open a special file (<code>/dev/example</code>) . The driver has an open method that initializes a structure (<code>struct c</code>) and passes it to   <code>filp-&gt;private_data</code> . When afterwards process B opens the same special file , what happens If I understand correct is that we will have two instances of struct file (two filp pointers that point to the same struct file). Is the open method going to initialize <code>struct C</code> again and pass it to <code>filp-&gt;private_data</code> and what will happen to the one process A initialized ? </p>