Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2005 19:09:25 +0530
From:      "Kamal R. Prasad" <kamalpr@gmail.com>
To:        hselasky@c2i.net
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Is d_mmap used ?
Message-ID:  <ac7deb5050827063919a3a87f@mail.gmail.com>
In-Reply-To: <200508271455.51420.hselasky@c2i.net>
References:  <200508271455.51420.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
When you mmap() a device, the d_mmap member is used.
eg:- fd =3D open("/dev/abc", O_RDWR);
       my_addr =3D mmap(fd,...);
regards
-kamal

On 8/27/05, Hans Petter Selasky <hselasky@c2i.net> wrote:
> Hi,
>=20
>=20
>=20
> I'm working on porting "/sys/fs/devfs" to NetBSD, and I noticed that it
> doesn't call "d_mmap" in "struct cdevsw". So is memory mapping of devices=
 in
> "/dev" not supported. Or is "d_mmap" called from somewhere else ?
>=20
>=20
>=20
> --HPS
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org=
"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ac7deb5050827063919a3a87f>