How to access mapped dirve in Linux


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 1  
How to access mapped dirve in Linux

i want to access mounted/mapped drive in linux using C code

is it possible to access the mapped drive in linux using C code ?

waiting for replay

NIrav
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

10 More Discussions You Might Find Interesting

1. Proxy Server

How to use Squid on Linux to control certain IP to access Web Server and certain IP cannot access?

Dear all experts here, :) I would like to install a proxy server on Linux server to perform solely to control the access of Web server. In this case, some of my vendor asked me to try Squid and I have installed it onto my Linux server. I would like know how can I set the configuration to... (1 Reply)
Discussion started by: kwliew999
1 Replies

2. Shell Programming and Scripting

mapped reads using samtools flagstat options

Hey guys, Does anyone know how to calculate total number of mapped reads for a certain region of a bam file using samtools flagstat? I know to use flagstat for the whole bam file. but for a specific region of it... is there an option? Tnx ---------- Post updated at 12:27 PM ----------... (1 Reply)
Discussion started by: @man
1 Replies

3. AIX

how will i know if a lun has been already mapped to a vio client

Hi im logged in to the vio servers now. when i give # lspv | wc -l i get the count as 6246 how will i know if a lun has been already mapped to a vio client or it is left free without mapping to any of the vio client ? (1 Reply)
Discussion started by: newtoaixos
1 Replies

4. Solaris

Unexpected mapped volume in Solaris 10

Hi everybody, I'm facing a little trouble with my system. I have a SPARC M4000 server, which connected to a SAN with 2 Brocade 300 Switches and 1 STK 6140. The M4000 has 2 FC HBA cards, one port per card. Each card connect to one switch as follows... ____________M4000____________ ___FC-HBA... (2 Replies)
Discussion started by: nam.nguyen
2 Replies

5. UNIX for Advanced & Expert Users

Linux: Access time of mapped data

Before I forget, I'm running on a RedHat 5 box with the following uname -a output: Linux gnc141c 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux Now on to my question. I'm using a tool that maps a Matlab .mat file using the Linux mmap functionality and then... (1 Reply)
Discussion started by: rusttree
1 Replies

6. SCO

SCO Mapped Drive

We are running SCO OpenServer 5.0.7. Some of my users have drives mapped to the SCO box, some don't. The consultant, who setup the mapped drives, is long gone, and I need more users to have drive letter mapping. When I try to map a drive via windows, I am repeatedly asked for a user/password,... (1 Reply)
Discussion started by: bnhcomputing
1 Replies

7. Shell Programming and Scripting

Mapped list replacement

Hi to all. I've looked for this, and haven't found it, but please pardon me if I've overlooked something. I'm trying to come up with a relatively simple command line search and replace from and to which I can easily pipe. In particular, let's suppose there are 2 lists, A and B. If a string... (4 Replies)
Discussion started by: treesloth
4 Replies

8. Filesystems, Disks and Memory

Virtual Machine and Mapped Raw LUN's

Hello, I have a server running CentOS 5.1 on a virtual machine. Right now, there is one virtual disk on the system. Below are the result when I run the df commmand: Filesystem.....1K-blocks.........Used.....Available....Use%.....Mounted on... (1 Reply)
Discussion started by: kennyw1000
1 Replies

9. UNIX for Advanced & Expert Users

Hard Dirve Space Remaining

DOES ANYONE KNOW IF THERE IS ANY C CODE YOU CAN USE WITHIN UNIX TO FIND THE REMAINING DISK SPACE ON A HARD DRIVE. (4 Replies)
Discussion started by: spu230479
4 Replies

10. UNIX for Dummies Questions & Answers

Need help to access/mount so to access folder/files on a Remote System using Linux OS

Hi I need to access files from a specific folder of a Linux system from an another Linux System Remotely. I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility. Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
ddi_regs_map_setup(9F)					   Kernel Functions for Drivers 				    ddi_regs_map_setup(9F)

NAME
ddi_regs_map_setup - set up a mapping for a register address space SYNOPSIS
#include <sys/ddi.h> #include <sys/sunddi.h> int ddi_regs_map_setup(dev_info_t *dip, uint_t rnumber, caddr_t *addrp, offset_t offset, offset_t len, ddi_device_acc_attr_t *accattrp, ddi_acc_handle_t *handlep); INTERFACE LEVEL
Solaris DDI specific (Solaris DDI). PARAMETERS
dip Pointer to the device's dev_info structure. rnumber Index number to the register address space set. addrp A platform-dependent value that, when added to an offset that is less than or equal to the len parameter (see below), is used for the dev_addr argument to the ddi_get, ddi_mem_get, and ddi_io_get/put routines. offset Offset into the register address space. len Length to be mapped. accattrp Pointer to a device access attribute structure of this mapping (see ddi_device_acc_attr(9S)). handlep Pointer to a data access handle. DESCRIPTION
ddi_regs_map_setup() maps in the register set given by rnumber. The register number determines which register set is mapped if more than one exists. offset specifies the starting location within the register space and len indicates the size of the area to be mapped. If len is non-zero, it overrides the length given in the register set description. If both len and offset are 0, the entire space is mapped. The base of the mapped register space is returned in addrp. The device access attributes are specified in the location pointed by the accattrp argument (see ddi_device_acc_attr(9S) for details). The data access handle is returned in handlep. handlep is opaque; drivers should not attempt to interpret its value. The handle is used by the system to encode information for subsequent data access function calls to maintain a consistent view between the host and the device. RETURN VALUES
ddi_regs_map_setup() returns: DDI_SUCCESS Successfully set up the mapping for data access. DDI_FAILURE Invalid register number rnumber, offset offset, or length len. DDI_ME_RNUMBER_RANGE Invalid register number rnumber or unable to find reg property. DDI_REGS_ACC_CONFLICT Cannot enable the register mapping due to access conflicts with other enabled mappings. Note that the return value DDI_ME_RNUMBER_RANGE is not supported on all platforms. Also, there is potential overlap between DDI_ME_RNUM- BER_RANGE and DDI_FAILURE. Drivers should check for !=DDI_SUCCESS rather than checking for a specific failure value. CONTEXT
ddi_regs_map_setup() must be called from user or kernel context. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |PCI Local Bus, SBus, ISA | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5), ddi_regs_map_free(9F), ddi_device_acc_attr(9S) Writing Device Drivers SunOS 5.10 18 Nov 2004 ddi_regs_map_setup(9F)

Featured Tech Videos