From mboxrd@z Thu Jan 1 00:00:00 1970 From: carmeli.tamir@gmail.com (Tamir Carmeli) Date: Sun, 4 Nov 2018 21:23:13 +0200 Subject: What is the proper way to close file received by file_open_root? Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi, I see in elixir 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: From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gJO0x-0007s6-KF for kernelnewbies@kernelnewbies.org; Sun, 04 Nov 2018 14:24:51 -0500 Received: by mail-pg1-x52a.google.com with SMTP id w3-v6so3174304pgs.11 for ; Sun, 04 Nov 2018 11:24:51 -0800 (PST) MIME-Version: 1.0 From: Tamir Carmeli Date: Sun, 4 Nov 2018 21:23:13 +0200 Message-ID: Subject: What is the proper way to close file received by file_open_root? To: kernelnewbies@kernelnewbies.org List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7068129006018791591==" Errors-To: kernelnewbies-bounces+konstantin=linuxfoundation.org@kernelnewbies.org Message-ID: <20181104192313.SGDDFMRxn0uqZ_IMxkbJzI7MkgO6sRInBiPnY6UHqYI@z> --===============7068129006018791591== Content-Type: multipart/alternative; boundary="0000000000004a5dd30579dbb559" --0000000000004a5dd30579dbb559 Content-Type: text/plain; charset="UTF-8" Hi, I see in elixir 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 --0000000000004a5dd30579dbb559 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
I see in elixir that there 4 calls in the kerne= l. 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 resid= es in the kernel's Documentation directory.

Wh= at is the correct way to cleanup the file?

Thanks,= =C2=A0
Tamir
--0000000000004a5dd30579dbb559-- --===============7068129006018791591== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============7068129006018791591==--