delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/19/13:00:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 19 Aug 2005 13:00:08 -0400 (EDT)
From: Jason Pyeron <jpyeron AT pdinc DOT us>
X-X-Sender: jpyeron AT ns DOT pyerotechnics DOT com
To: cygwin AT cygwin DOT com
Subject: Re: building device drivers
In-Reply-To: <43060E64.B79EA0F1@dessent.net>
Message-ID: <Pine.LNX.4.62.0508191251460.31247@ns.pyerotechnics.com>
References: <Pine DOT LNX DOT 4 DOT 62 DOT 0508191235570 DOT 31247 AT ns DOT pyerotechnics DOT com> <43060E64 DOT B79EA0F1 AT dessent DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes

On Fri, 19 Aug 2005, Brian Dessent wrote:

>
> I don't think that's really going to work.  Cygwin cannot be linked
> statically and even if it could, it was not designed to run in kernel
> space at all.  Cygwin does not try to emulate the linux kernel, just a
> POSIX api.  So low level things like device drivers are not going to
> just port over.  What you need to do is get the Windows DDK and write a
> true windows driver for your device.  Then you can port the userland
> tools using Cygwin and interface with the windows driver.


I am using the DDK. But that being said, inside I would like to use some 
POSIX code.

The problem I am running into, is what Linux considers user space, windows 
does not.

So to port the code, with minimal changes, I have to move it into kernel 
space on windows. IGNORING RED FLAGS THERE.

So that being said, why can't the cygwin libraries be linked statically?


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager             7 West 24th Street #100     -
- +1 (443) 921-0381                 Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019