Kernel Newbies archive on lore.kernel.org
 help / Atom feed
* What is the proper way to close file received by file_open_root?
@ 2018-11-04 19:23 carmeli.tamir
  2018-11-04 19:23 ` Tamir Carmeli
  0 siblings, 1 reply; 2+ messages in thread
From: carmeli.tamir @ 2018-11-04 19:23 UTC (permalink / raw)
  To: kernelnewbies

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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* What is the proper way to close file received by file_open_root?
  2018-11-04 19:23 What is the proper way to close file received by file_open_root? carmeli.tamir
@ 2018-11-04 19:23 ` Tamir Carmeli
  0 siblings, 0 replies; 2+ messages in thread
From: Tamir Carmeli @ 2018-11-04 19:23 UTC (permalink / raw)
  To: kernelnewbies

[-- 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 --]

<div dir="ltr">Hi,<div>I see in <a href="https://elixir.bootlin.com/linux/v4.19.1/ident/file_open_root">elixir</a> that there 4 calls in the kernel. In two of them fput is used for cleanup, and in coredump.c filp_close is used.</div><div>The function has no documentation and no information resides in the kernel&#39;s Documentation directory.</div><div><br></div><div>What is the correct way to cleanup the file?</div><div><br></div><div>Thanks, </div><div>Tamir</div></div>

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-04 19:23 What is the proper way to close file received by file_open_root? carmeli.tamir
2018-11-04 19:23 ` Tamir Carmeli

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox