kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: pranjas@gmail.com (Pranay Srivastava)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Difference between seq_release and single_release ?
Date: Thu, 24 Apr 2014 22:44:07 +0530	[thread overview]
Message-ID: <CA+aCy1Heqkh0zq2ofrvb2qneXpmGHighepLW8H+P9N+3r=PJUA@mail.gmail.com> (raw)
In-Reply-To: <CAAZ620MTj-qiyWEuS-PzmZ7OkUZqkoQk2yRNnv1NRu2b8nCgAg@mail.gmail.com>

On Apr 24, 2014 10:12 PM, "Abhijeet Kasurde" <abhijeetkasurde21@gmail.com>
wrote:
>
> Hi All,
>
> What is difference between seq_release and single_release API ? Can
> someone explain particular use case of these APIs ?
>
>From the code  seq_file.c ,it seems

seq_release compliments seq_open

While single_release for single_open.

There is a seq_operations structure which gets freed in single_release in
addition to seq_release.

> Thanks,
> Abhijeet Kasurde
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140424/b785c9ef/attachment.html 

      reply	other threads:[~2014-04-24 17:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-24 16:40 Difference between seq_release and single_release ? Abhijeet Kasurde
2014-04-24 17:14 ` Pranay Srivastava [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='CA+aCy1Heqkh0zq2ofrvb2qneXpmGHighepLW8H+P9N+3r=PJUA@mail.gmail.com' \
    --to=pranjas@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).