Re: implementation of 'mmap' on '/dev/zero'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bruce Majia <bruce.majia@xxxxxxxxx> writes:

> On Mon, Sep 28, 2009 at 10:06:43AM +0200, Andrea Gasparini wrote:
>> MaJia spiffera, alle Monday 28 September 2009 circa:
>> > I want to read kernel's implementation but did not found corresponding
>> > implementation to '/dev/zero'.
>> 
>> I guess you'd find it here:
>> /drivers/char/mem.c
>
> You are right. My machine is slow so I did wait a short while for the
> command:
>
> $ grep "/dev/zero" * _-rn
>
> to complete. You just figured out right file.

The Linux Cross Reference is a handy way to search, and it's pretty
fast:

  http://lxr.linux.no/linux

It finds mem.c and some other interesting spots when I search for
/dev/zero.

-- 
  Ed Cashin <ecashin@xxxxxxxxxx>
  Find experimental aoe Linux driver patches at
  http://coraid.typepad.com/aoe_linux_proving_grounds/


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux