mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* /dev/null implementation question
@ 2007-03-08 18:01 Michael Nitschinger
  2007-03-08 19:01 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Nitschinger @ 2007-03-08 18:01 UTC (permalink / raw)
  To: linux-kernel

Hello,

I asked myself how /dev/null is implemented in C, but i didn't find anything in the documentation or generally on the internet. It would be great if someone could tell me where i can find the source for this device or how it is implemented, because it's really hard for me to crawl through the whole sourcetree.

thanks in advance, kind regards
Michael Nitschinger

(p.s.: it would be great if you can Cc me in your answers because i am not subscribed to the mailinglist! thanks)

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

* Re: /dev/null implementation question
  2007-03-08 18:01 /dev/null implementation question Michael Nitschinger
@ 2007-03-08 19:01 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2007-03-08 19:01 UTC (permalink / raw)
  To: Michael Nitschinger; +Cc: linux-kernel

On Thu, 8 Mar 2007 19:01:39 +0100 Michael Nitschinger wrote:

> Hello,
> 
> I asked myself how /dev/null is implemented in C, but i didn't find anything in the documentation or generally on the internet. It would be great if someone could tell me where i can find the source for this device or how it is implemented, because it's really hard for me to crawl through the whole sourcetree.
> 
> thanks in advance, kind regards
> Michael Nitschinger
> 
> (p.s.: it would be great if you can Cc me in your answers because i am not subscribed to the mailinglist! thanks)

See linux/drivers/char/mem.c, look for null_fops.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

end of thread, other threads:[~2007-03-08 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-08 18:01 /dev/null implementation question Michael Nitschinger
2007-03-08 19:01 ` Randy Dunlap

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®