kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: sudipm.mukherjee@gmail.com (Sudip Mukherjee)
To: kernelnewbies@lists.kernelnewbies.org
Subject: what happens to "open" if the slot is left empty in file_operations.
Date: Sat, 14 Nov 2015 13:46:14 +0530	[thread overview]
Message-ID: <CADVatmMKWmbPx9kH__pW6YTDFvktvzv8KDQDajXD7srSnqApVA@mail.gmail.com> (raw)
In-Reply-To: <CAJQX3DxuuqqW1KFUBrvi3EC_eNU127BH-6_9S+CneXWCLy4LKw@mail.gmail.com>

On Sat, Nov 14, 2015 at 12:40 PM, Shiyao Ma <i@introo.me> wrote:

> Hi,
>
>
> When writing a char device driver, if the "open" slots is left vacant in
> the file_operations structure, what will happen if "open" is called ?
>

You can have a loot at chrdev_open() function in  fs/char_dev.c  file.

regards
sudip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151114/c34ea387/attachment.html 

      reply	other threads:[~2015-11-14  8:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-14  7:10 what happens to "open" if the slot is left empty in file_operations Shiyao Ma
2015-11-14  8:16 ` Sudip Mukherjee [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADVatmMKWmbPx9kH__pW6YTDFvktvzv8KDQDajXD7srSnqApVA@mail.gmail.com \
    --to=sudipm.mukherjee@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).