[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Philip N Daly <pnd@noao.edu>] (fwd)



>From owner-rtl Thu Jun 21 15:39:15 2001
Received: from noao.edu (noao.edu [140.252.1.54])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f5LLdEe24091
	for <rtl@fsmlabs.com>; Thu, 21 Jun 2001 15:39:15 -0600
Received: from yam.tuc.noao.edu ([140.252.23.194] verified)
  by noao.edu (CommuniGate Pro SMTP 3.4.7)
  with ESMTP id 1218316 for rtl@fsmlabs.com; Thu, 21 Jun 2001 14:33:04 -0700
Received: from yam.tuc.noao.edu (yam.tuc.noao.edu [140.252.23.194])
	by yam.tuc.noao.edu (8.9.1/8.9.1/SAG-04Feb01) with SMTP id PAA07404
	for <rtl@fsmlabs.com>; Thu, 21 Jun 2001 15:33:04 -0600 (MDT)
Message-Id: <200106212133.PAA07404@yam.tuc.noao.edu>
Date: Thu, 21 Jun 2001 15:33:04 -0600 (MDT)
From: Philip N Daly <pnd@noao.edu>
Reply-To: Philip N Daly <pnd@noao.edu>
Subject: Re: [rtl] starting kernel modules under RTLinux
To: rtl@fsmlabs.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: GM41IBxFEa+ZI6MdxyEIkA==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.5 SunOS 5.7 sun4u sparc 


> In a RTLinux-based program I've written, I load a real-time kernel module:
> 
>     system("rtlinux start mymod.o");

Try something like (assuming RTPATH is single valued):

   char rtsysname[256];
   strcpy(rtsysname,"/sbin/insmod -sf ");
   if ( getenv("RTPATH") != NULL ) {
    strcat(rtsysname,getenv("RTPATH"));
    strcat(rtsysname,"/mymod.o");   
    system(rtsysname);
   }

+==================================================================+
 Phil Daly, NOAO/AURA, 950 N. Cherry Avenue, Tucson AZ 85719, U S A
 E-mail: pdaly@noao.edu  V-mail: (520) 318 8438  Fax: (520) 318 8360

----- End of forwarded message from owner-rtl@fsmlabs.com -----