Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!gem.mps.ohio-state.edu!mips!rogerk From: rogerk@mips.COM (Roger B.A. Klorese) Newsgroups: comp.sys.mips Subject: Re: Use of mmap() Message-ID: <32198@servitude.mips.COM> Date: 27 Nov 89 16:19:20 GMT References: <48700@bbn.COM> Reply-To: rogerk@mips.COM (Roger B.A. Klorese) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 13 In article <48700@bbn.COM> ajc@bbn.com (Anthony J. Courtemanche) writes: >mmap() seems like what I want, but I do not know what to pass >as the file descriptor argument that is associated with the kernel >memory that I want to map into the user's address space. If anyone >knows how to make a "file descriptor associated with a memory device" >(words taken from the mmap() man page), please let me know. It's the fd on which the user has opened /dev/your-device. -- ROGER B.A. KLORESE MIPS Computer Systems, Inc. phone: +1 408 720-2939 928 E. Arques Ave. Sunnyvale, CA 94086 rogerk@mips.COM {ames,decwrl,pyramid}!mips!rogerk "I want to live where it's always Saturday." -- Guadalcanal Diary