mount(2) parameters

dao_at_snakebrook.com
Date: 01/18/05


Date: 17 Jan 2005 19:06:52 -0800


Hi, I am trying to figure out the paremeters to the mount(2) system
call, in particular, the "void *data" parameter.

Specifically, is this parameter a pointer to a string (char*) set of
options, or is it the address of a "struct nfs_mount_data". I seem to
be reading conflicting things in the man pages.

Either way, I have tried both (a char* and a strcut nfs_mount_data and
mount(2) returns an error regardless of what I puch in for data.

I'm doing some liek the following:

mount("192.168.1.6:/fs45", "/fs54", "nfs", MS_RDONLY, data);

where data is either one of the following:

char *data=" ... ";

or

struct nfs_mount_data data;
Any help is appreciated.

Jack



Relevant Pages

  • Re: Memory Structure Pointer Problems
    ... typedef struct sta { ... char* name; ... int num_cmpnds; ... A pointer to a struct cmp is almost ...
    (comp.lang.c)
  • Re: Passing void pointer to p_thread that is a Char
    ... > integer of a different size (char). ... > user-defined start routine. ... > pointer to this start routine (a function that takes a single void* ...
    (comp.lang.c)
  • Re: invalid pointer adress
    ... >> pointer causes the program to exit with a core dump. ... struct s2{void *p;}; ... int leseExterneHinweise_masch_storno ... typedef struct s_AusdatFeldbeschreibung ...
    (comp.lang.c)
  • Re: Exporting a structure
    ... A Structure is like a char array. ... A struct looks like this. ... The following gets a double pointer to the first element of the array. ... We could have done something weird, like getting an int from a double. ...
    (microsoft.public.vc.mfc)
  • Re: Why "const rect& rhs" is used here?
    ... declared as const, as far as i can see, i also ... char pcStudentFirstName; ... // Example where struct is copied. ... void SetStudentName ...
    (microsoft.public.vc.language)