public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /dev/zero
@ 2002-04-12  6:46 blesson paul
  2002-04-12  7:19 ` /dev/zero Frank Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: blesson paul @ 2002-04-12  6:46 UTC (permalink / raw)
  To: linux-kernel

Hi all
               I am newbie to linux kernel. What is the use of /dev/zero. 
Why it is created and how to use it
regards
Blesson Paul



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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

* Re: /dev/zero
  2002-04-12  6:46 /dev/zero blesson paul
@ 2002-04-12  7:19 ` Frank Schaefer
  2002-04-12  7:26   ` /dev/zero Rowan Ingvar Wilson
  0 siblings, 1 reply; 11+ messages in thread
From: Frank Schaefer @ 2002-04-12  7:19 UTC (permalink / raw)
  To: linux-kernel

On Fri, 2002-04-12 at 08:46, blesson paul wrote:
> Hi all
>                I am newbie to linux kernel. What is the use of /dev/zero. 
> Why it is created and how to use it
> regards
> Blesson Paul
> 
> 
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
Hi,

/dev/zero is a data source. It delivers zeroes ( maybe that's why this
name ;-).

BTW: You are new to the linux kernel or new to linux / unix?

Regards
Frank


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

* RE: /dev/zero
  2002-04-12  7:19 ` /dev/zero Frank Schaefer
@ 2002-04-12  7:26   ` Rowan Ingvar Wilson
  2002-04-12  8:08     ` /dev/zero Samuel Maftoul
  0 siblings, 1 reply; 11+ messages in thread
From: Rowan Ingvar Wilson @ 2002-04-12  7:26 UTC (permalink / raw)
  To: 'Frank Schaefer', linux-kernel

Just as a matter of interest myself...what is it's actual function? It
is used during kernel debugging to supply an input?

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Frank Schaefer
Sent: 12 April 2002 08:19
To: linux-kernel@vger.kernel.org
Subject: Re: /dev/zero

On Fri, 2002-04-12 at 08:46, blesson paul wrote:
> Hi all
>                I am newbie to linux kernel. What is the use of
/dev/zero. 
> Why it is created and how to use it
> regards
> Blesson Paul
> 
> 
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> -
> To unsubscribe from this list: send the line "unsubscribe
linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
Hi,

/dev/zero is a data source. It delivers zeroes ( maybe that's why this
name ;-).

BTW: You are new to the linux kernel or new to linux / unix?

Regards
Frank

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


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

* Re: /dev/zero
  2002-04-12  7:26   ` /dev/zero Rowan Ingvar Wilson
@ 2002-04-12  8:08     ` Samuel Maftoul
  2002-04-12 15:12       ` /dev/zero Guillaume Gimenez
  0 siblings, 1 reply; 11+ messages in thread
From: Samuel Maftoul @ 2002-04-12  8:08 UTC (permalink / raw)
  To: Rowan Ingvar Wilson; +Cc: lkml

It's just zeroes, so it allows you to test raw write speed on any
device:
dd if=/dev/zero of=/dev/hda to test your performances of hda ...
normally if I get it well, /dev/zero can't be you're bottleneck.
        Sam
On Fri, Apr 12, 2002 at 08:26:22AM +0100, Rowan Ingvar Wilson wrote:
> Just as a matter of interest myself...what is it's actual function? It
> is used during kernel debugging to supply an input?
> 
> -----Original Message-----
> From: linux-kernel-owner@vger.kernel.org
> [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Frank Schaefer
> Sent: 12 April 2002 08:19
> To: linux-kernel@vger.kernel.org
> Subject: Re: /dev/zero
> 
> On Fri, 2002-04-12 at 08:46, blesson paul wrote:
> > Hi all
> >                I am newbie to linux kernel. What is the use of
> /dev/zero. 
> > Why it is created and how to use it
> > regards
> > Blesson Paul
> > 
> > 
> > 
> > _________________________________________________________________
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> > 
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
> > 
> Hi,
> 
> /dev/zero is a data source. It delivers zeroes ( maybe that's why this
> name ;-).
> 
> BTW: You are new to the linux kernel or new to linux / unix?
> 
> Regards
> Frank
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

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

* Re: /dev/zero
  2002-04-12  8:08     ` /dev/zero Samuel Maftoul
@ 2002-04-12 15:12       ` Guillaume Gimenez
  0 siblings, 0 replies; 11+ messages in thread
From: Guillaume Gimenez @ 2002-04-12 15:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: Rowan Ingvar Wilson, blesson paul, Samuel Maftoul

[-- Attachment #1: Type: text/plain, Size: 506 bytes --]

Samuel Maftoul a écrit:
    Samuel> It's just zeroes, so it allows you to test raw write speed on any
    Samuel> device:
    Samuel> dd if=/dev/zero of=/dev/hda to test your performances of hda ...
    Samuel> normally if I get it well, /dev/zero can't be you're bottleneck.
    Samuel>         Sam

Just to save Samuel's soul ;-)
the dd command supplied above will erase your primary hard drive

To see hard drive performances, hdparm -tT /dev/hda is better.

PS: Pas sympa Samuel

-- 
Guillaume Gimenez

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

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

* Re: /dev/zero
@ 2002-04-12 23:02 Samuel Maftoul
  0 siblings, 0 replies; 11+ messages in thread
From: Samuel Maftoul @ 2002-04-12 23:02 UTC (permalink / raw)
  To: lkml

On Fri, Apr 12, 2002 at 05:12:06PM +0200, Guillaume Gimenez wrote:
> Samuel Maftoul a écrit:
>     Samuel> It's just zeroes, so it allows you to test raw write speed on any
>     Samuel> device:
>     Samuel> dd if=/dev/zero of=/dev/hda to test your performances of hda ...
>     Samuel> normally if I get it well, /dev/zero can't be you're bottleneck.
>     Samuel>         Sam
oops really sorry, It will really earase your disk.
This morning I was really sleepy and wanted to write something other:
time dd if=/dev/zero of=/mnt/ bs=1024 count=100000 
and so you can know what's the speed not of your ide or scsi (or
something other) which is given by hdparm but it will give you the speed
through the used filesystem.
Sorry about that.
        Sam

> 
> Just to save Samuel's soul ;-)
> the dd command supplied above will erase your primary hard drive
> 
> To see hard drive performances, hdparm -tT /dev/hda is better.
> 
> PS: Pas sympa Samuel
> 
> -- 
> Guillaume Gimenez

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

* /dev/zero
@ 2002-04-19  8:33 blesson paul
  2002-04-19 10:22 ` /dev/zero Frank Schaefer
  2002-04-23 22:46 ` /dev/zero Bill Davidsen
  0 siblings, 2 replies; 11+ messages in thread
From: blesson paul @ 2002-04-19  8:33 UTC (permalink / raw)
  To: linux-kernel

Hi
		I need some more information about /dev/zero. I need to replace the device 
driver of /dev/zero(I do not know whether I can name the program controlling 
the /dev/zero as device driver). How to do the job. If I cannot replace the 
device driver of /dev/zero, how to create a new charecter device and load my 
device driver.

regards
Blesson Paul




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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

* Re: /dev/zero
  2002-04-19  8:33 /dev/zero blesson paul
@ 2002-04-19 10:22 ` Frank Schaefer
  2002-04-20  0:50   ` /dev/zero willam
  2002-04-23 22:46 ` /dev/zero Bill Davidsen
  1 sibling, 1 reply; 11+ messages in thread
From: Frank Schaefer @ 2002-04-19 10:22 UTC (permalink / raw)
  To: linux-kernel

On Fri, 2002-04-19 at 10:33, blesson paul wrote:
> Hi
> 		I need some more information about /dev/zero. I need to replace the device 
> driver of /dev/zero(I do not know whether I can name the program controlling 
> the /dev/zero as device driver). How to do the job. If I cannot replace the 
> device driver of /dev/zero, how to create a new charecter device and load my 
> device driver.
> 
Hi,

I don't have any clue, why one should want to replace /dev/zero. But to
get a picture how to start writing a device driver, see
http://www.freeos.com/articles/2677/2/13/ ( Or
Goooooooooooooooooooooogle some other information ).

Regards
Frank


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

* RE: /dev/zero
@ 2002-04-19 16:35 Torrey Hoffman
  0 siblings, 0 replies; 11+ messages in thread
From: Torrey Hoffman @ 2002-04-19 16:35 UTC (permalink / raw)
  To: blesson paul, linux-kernel

blesson paul wrote:
> 		I need some more information about /dev/zero. I 
> need to replace the device 
> driver of /dev/zero(I do not know whether I can name the 
> program controlling 
> the /dev/zero as device driver). How to do the job. 
...

You really ought to get yourself a copy of "Linux Device
Drivers 2nd Edition" by Rubini and Corbet.  

It contains good explanations and lots of examples.

http://www.oreilly.com/catalog/linuxdrive2/

Lucky for you, there is a free online copy:

http://www.xml.com/ldd/chapter/book/index.html

but you probably want to get the paper version too, it is
more convenient in many situations.

Good luck.

Torrey Hoffman
thoffman@arnor.net
torrey.hoffman@myrio.com

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

* Re: /dev/zero
  2002-04-19 10:22 ` /dev/zero Frank Schaefer
@ 2002-04-20  0:50   ` willam
  0 siblings, 0 replies; 11+ messages in thread
From: willam @ 2002-04-20  0:50 UTC (permalink / raw)
  To: linux-kernel

> On Fri, 2002-04-19 at 10:33, blesson paul wrote:
> > Hi
> > I need some more information about /dev/zero. I need to replace the
device
> > driver of /dev/zero(I do not know whether I can name the program
controlling
> > the /dev/zero as device driver). How to do the job. If I cannot replace
the
> > device driver of /dev/zero, how to create a new charecter device and
load my
> > device driver.
> >
Hi,you should read the <<Linux Device Drivers>>,it will surely do good to
you.



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

* Re: /dev/zero
  2002-04-19  8:33 /dev/zero blesson paul
  2002-04-19 10:22 ` /dev/zero Frank Schaefer
@ 2002-04-23 22:46 ` Bill Davidsen
  1 sibling, 0 replies; 11+ messages in thread
From: Bill Davidsen @ 2002-04-23 22:46 UTC (permalink / raw)
  To: blesson paul; +Cc: linux-kernel

On Fri, 19 Apr 2002, blesson paul wrote:

> 		I need some more information about /dev/zero. I need to replace the device 
> driver of /dev/zero(I do not know whether I can name the program controlling 
> the /dev/zero as device driver). How to do the job. If I cannot replace the 
> device driver of /dev/zero, how to create a new charecter device and load my 
> device driver.

  I have to ask, WHY? Is this because you want to return a value other
than zero, to to improve the performance of /dev/zero, or just to write a
driver (/dev/one could be used ;-).

-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.


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

end of thread, other threads:[~2002-04-23 22:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-12  6:46 /dev/zero blesson paul
2002-04-12  7:19 ` /dev/zero Frank Schaefer
2002-04-12  7:26   ` /dev/zero Rowan Ingvar Wilson
2002-04-12  8:08     ` /dev/zero Samuel Maftoul
2002-04-12 15:12       ` /dev/zero Guillaume Gimenez
  -- strict thread matches above, loose matches on Subject: below --
2002-04-12 23:02 /dev/zero Samuel Maftoul
2002-04-19  8:33 /dev/zero blesson paul
2002-04-19 10:22 ` /dev/zero Frank Schaefer
2002-04-20  0:50   ` /dev/zero willam
2002-04-23 22:46 ` /dev/zero Bill Davidsen
2002-04-19 16:35 /dev/zero Torrey Hoffman

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