06-15-2009
Porting OSE to Linux
Hi,
I was trying to port efs_mount(OSE system call) to a LInux.The efs_mount function is used to mount a volume on the indicated device dev.Upon successful completion of this OSE sytem call a volume manager (VM) will be available through which files on this volume are accessed. The Syntax for this syetm call is like :
Syntax: EfsStatus efs_mount(const char *volume, const char *format, const char *dev, const char *params);
Code :
vol_name= /st_dmx_dd0
drv_name= st_dmx_dd0
confm means Console format manager handling a serial channel.
efs_mount(vol_name, "confm", drv_name, "");
If it returns success, we open the file descriptors for input,output and std error and use it for further processing.
Could anyone help me out on how can I port the above system call to LINUX?
Thanks and Regards
Roshan
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
i wanted to port some HP-UX code to linux. can anybody point to some documents or resources that would help me in doing the porting..
thanks in advance
Arun Prakash (0 Replies)
Discussion started by: arunprakash
0 Replies
2. Programming
Gents,
i'm a senior applications developer and need to port a Linux server application ( no additional / special libraries or unique header files ) to a HPUX enviroment.
Any chance to compile it on the Linux using flags to create an HPUX binary with gcc? (8 Replies)
Discussion started by: anak0nda
8 Replies
3. Linux
helo,
i m porting HP-UX socket application to Linux SSL-socket application.
I have use htonl() in HP-UX.
so when i use it in Linux, data transf is not done and application become soem time crashed.
now when i remove htonl() in linux, then i got data but it will not proper order or some data may... (1 Reply)
Discussion started by: amitpansuria
1 Replies
4. Linux
Hello All,
I have a code of DHCP which is implemented on Linux. During porting this code from Linux to VxWorks, I come up with following errors:-
jects\freedom\ap\udhcp\socket.c
C:\projects\freedom\ap\udhcp\socket.c: In function `read_interface':
C:\projects\freedom\ap\udhcp\socket.c:79:... (1 Reply)
Discussion started by: Sunny Shivam
1 Replies
5. IP Networking
DHCP Porting (2 Replies)
Discussion started by: Sunny Shivam
2 Replies
6. Programming
I am new to Linux programming and my work involves changing an abstraction layer which made Nucleus calls, to Linux calls.
In Case of Events Nucleus has calls like
NU_Set_Events()
NU_Retrieve_Events()
Can I use the POSIX thread conditional variables for Linux?
Can I use the System V calls... (1 Reply)
Discussion started by: taklubaba
1 Replies
7. Solaris
Hi all,
Has anyone experience with proting a Linux driver (C-code) to Solaris 10?
I have a Sunix SATA card with a inicio1622 chipset, but no driver available. From the website of inicio I downloaded the drivercode for Linux 2.4.
Having done some investigation I found a Solaris driver... (4 Replies)
Discussion started by: longwave
4 Replies
8. Shell Programming and Scripting
Can any one please help the use of "cu command in Solaris" and as well as in Linux :confused: (1 Reply)
Discussion started by: sabee.prakash
1 Replies
9. Programming
I am challenged with porting an old application from Solaris to Red Hat. The application uses Rogue Wave and I am searching for a Red Hat implementation. Your help is appreciated! (2 Replies)
Discussion started by: FunkyWinkerbean
2 Replies
10. Shell Programming and Scripting
I have a script which has commands that are located in different paths on my Linux o/s than on Solaris. For example, to make uname work, I need to do it this way in Solaris:
my $host= `/usr/bin/uname -n` But in Linux it is:
my $host = `/bin/uname -n`I have this issue with at least 5... (8 Replies)
Discussion started by: newbie2010
8 Replies
LEARN ABOUT SUNOS
scsi_log
scsi_log(9F) Kernel Functions for Drivers scsi_log(9F)
NAME
scsi_log - display a SCSI-device-related message
SYNOPSIS
#include <sys/scsi/scsi.h>
#include <sys/cmn_err.h>
void scsi_log(dev_info_t *dip, char *drv_name, uint_t level, const char *fmt, ...);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
dip Pointer to the dev_info structure.
drv_name String naming the device.
level Error level.
fmt Display format.
DESCRIPTION
scsi_log() is a utility function that displays a message via the cmn_err(9F) routine. The error levels that can be passed in to this func-
tion are CE_PANIC, CE_WARN, CE_NOTE, CE_CONT, and SCSI_DEBUG. The last level is used to assist in displaying debug messages to the console
only. drv_name is the short name by which this device is known; example disk driver names are sd and cmdk. If the dev_info_t pointer is
NULL, then the drv_name will be used with no unit or long name.
If the first character in format is:
o An exclamation mark (!), the message goes only to the system buffer.
o A caret (^), the message goes only to the console.
o A question mark (?) and level is CE_CONT, the message is always sent to the system buffer, but is written to the console only when the
system has been booted in verbose mode. See kernel(1M). If neither condition is met, the ? character has no effect and is simply
ignored.
All formatting conversions in use by cmn_err() also work with scsi_log().
CONTEXT
scsi_log() may be called from user or interrupt context.
SEE ALSO
kernel(1M), sd(7D), cmn_err(9F), scsi_errmsg(9F)
Writing Device Drivers
SunOS 5.10 18 Nov 2004 scsi_log(9F)