X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=U5JbuhhC9qJRFPi32NsuesMDprrYDJBjGSD/yAwOoc/XPIEsbUEhQ g1EjH7YtNZ0BAwGATvikwoLGS5orDMwQn2lWLwsGuRzc8pleTJQuIcqAYEVd8fSf opPBtfXie/a8kHEPA5KvJpSPes3swBs6hudIKm0gS1ed4eEt3baROc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=1a8KBHwJtyIS0dHhRPWTIdYrc5k=; b=iUzwxEfUE8beQA8x8PXlS+K4X+57 sMxdRswkZcptq+pIbywI2XMbRTr2RmfblfQc0XG0ORaw/MgLE8PEdX6ZZm3COxIm HjRw+O/IaPhUaVr6ryu03DcRWUVlsEUNd1bvPBvYk/tkSMCqmazNfTnltYjzMlsZ Q6TsY/cyVJZxCFs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Mark Geisert Subject: Re: File operations on a Windows Driver (character device) Date: Tue, 19 May 2015 07:52:39 +0000 (UTC) Lines: 18 Message-ID: References: <5559FB9E DOT 3040200 AT cygwin DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Alessio Faina writes: > Ok thanks, I've been able to find the character device under > "/proc/sys/DosDevices/Global/deviceName"; now I'm stuck with the mmap > implementation; when I do mmap in the userland program it returns me > errno 19 (#define ENODEV 19 /* No such device */) obviously because > I haven't set anything in the kernel module; there's a way to make visible a > portion of memory to be used by the mmap in the kernel? The memory is Non Paged > and allocated with a ExAllocatePoolWithTag in 'win terms'. Does http://stackoverflow.com/questions/29938573/accessing-kernel-memory-from-user-mode-windows help to answer your question? If it does, you'll still have to decide whether to translate the Windows calls there into Cygwin calls or instead just localize the Windows calls in one user-level module and leave everything else to Cygwin. ..mark -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple