mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Inline docs for bread()
@ 2001-09-18 19:53 Pavel Machek
  2001-09-19 14:12 ` John Levon
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2001-09-18 19:53 UTC (permalink / raw)
  To: torvalds, kernel list

Hi!

It took me quite a while to decide how to call bread correctly -- so I
added docs for it. Please apply,
								Pavel

--- clean/fs/buffer.c	Thu Aug 30 10:42:31 2001
+++ linux/fs/buffer.c	Tue Sep 18 21:52:47 2001
@@ -1226,9 +1228,13 @@
 	spin_unlock(&lru_list_lock);
 }
 
-/*
- * bread() reads a specified block and returns the buffer that contains
- * it. It returns NULL if the block was unreadable.
+/**
+ *	bread() - reads a specified block and returns the bh
+ *	@block: number of block
+ *	@size: size (in bytes) to read
+ * 
+ *	Reads a specified block, and returns buffer head that
+ *	contains it. It returns NULL if the block was unreadable.
  */
 struct buffer_head * bread(kdev_t dev, int block, int size)
 {

-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org

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

* Re: Inline docs for bread()
  2001-09-18 19:53 Inline docs for bread() Pavel Machek
@ 2001-09-19 14:12 ` John Levon
  0 siblings, 0 replies; 2+ messages in thread
From: John Levon @ 2001-09-19 14:12 UTC (permalink / raw)
  To: kernel list; +Cc: pavel

On Tue, Sep 18, 2001 at 09:53:56PM +0200, Pavel Machek wrote:

> -/*
> - * bread() reads a specified block and returns the buffer that contains
> - * it. It returns NULL if the block was unreadable.
> +/**
> + *	bread() - reads a specified block and returns the bh
> + *	@block: number of block
> + *	@size: size (in bytes) to read

You missed describing dev param. The docs script complains at this.

regards
john

-- 
"If you're not part of the problem, you're part of the problem space." 

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

end of thread, other threads:[~2001-09-19 14:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-18 19:53 Inline docs for bread() Pavel Machek
2001-09-19 14:12 ` John Levon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®