kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: carmeli.tamir@gmail.com (Tamir Carmeli)
To: kernelnewbies@lists.kernelnewbies.org
Subject: What is the proper way to close file received by file_open_root?
Date: Sun, 4 Nov 2018 21:23:13 +0200	[thread overview]
Message-ID: <CAKxm1-HLsoBOFEG-w6jywzqL1qx=cyJcsTx4LSTS=vvh4B2NUg@mail.gmail.com> (raw)

Hi,
I see in elixir
<https://elixir.bootlin.com/linux/v4.19.1/ident/file_open_root> that there
4 calls in the kernel. In two of them fput is used for cleanup, and in
coredump.c filp_close is used.
The function has no documentation and no information resides in the
kernel's Documentation directory.

What is the correct way to cleanup the file?

Thanks,
Tamir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20181104/73d1db89/attachment.html>

WARNING: multiple messages have this Message-ID (diff)
From: Tamir Carmeli <carmeli.tamir@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: What is the proper way to close file received by file_open_root?
Date: Sun, 4 Nov 2018 21:23:13 +0200	[thread overview]
Message-ID: <CAKxm1-HLsoBOFEG-w6jywzqL1qx=cyJcsTx4LSTS=vvh4B2NUg@mail.gmail.com> (raw)
Message-ID: <20181104192313.SGDDFMRxn0uqZ_IMxkbJzI7MkgO6sRInBiPnY6UHqYI@z> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 360 bytes --]

Hi,
I see in elixir
<https://elixir.bootlin.com/linux/v4.19.1/ident/file_open_root> that there
4 calls in the kernel. In two of them fput is used for cleanup, and in
coredump.c filp_close is used.
The function has no documentation and no information resides in the
kernel's Documentation directory.

What is the correct way to cleanup the file?

Thanks,
Tamir

[-- Attachment #1.2: Type: text/html, Size: 478 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

             reply	other threads:[~2018-11-04 19:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-04 19:23 Tamir Carmeli [this message]
2018-11-04 19:23 ` What is the proper way to close file received by file_open_root? Tamir Carmeli

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='CAKxm1-HLsoBOFEG-w6jywzqL1qx=cyJcsTx4LSTS=vvh4B2NUg@mail.gmail.com' \
    --to=carmeli.tamir@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).