how to create in proc

2001-04-03 Thread Srinivas Surabhi

hi all,
   
   i am new comer into the world of linux.i want to create a
subdirectory in /proc directory. Already i know have to create 
a file in the /proc filesystem.

   So kindly help me, what are the system calls/fuction calls to be used
for the creation of sub-directory in /proc directory.

thank u
srinivas 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



proc fs

2001-04-12 Thread Srinivas Surabhi

hi all,

  please help me to know how the proc file system is 
created/implemented.
  What are the source files,documentation related?

  thanks in advance
 
bye 
srinivas

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



driver compilations errors

2001-02-16 Thread Srinivas Surabhi


iam getting compilation errors  for driver code.

struct file_operations my_ops ={NULL,my_read,my_write,NULL,NULL,NULL
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
   NULL };

ERROR -> my_ops has intializer but incomplete type


pls can anybody
help


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



parameters passing problem in driver module

2001-02-20 Thread Srinivas Surabhi

In application program ,code for call to write system call is given
below...
  #include
main()
 { 
  int count,fd;
 fd=open("/dev/pseudo",O_RDWR);
  write(fd,buff,5);
  }
  
In driver module code for getting the buffer and count 

#include
 
int psuedo_write(struct inode*in,struct file*fp,char *buf,int count)
{
  kprintf("<1>pseudo_write routine called \n");
  kprintf("<1>count=%d \n",count);
  kprintf("<1>buffer=%s \n",buff);
  return 0;
} 
/**so here after inserting the module into the kernel using insmod 
pseudo.o and executing the application cc -c pseudo_app.c, the o/p on
console is */

"pseudo_write routine called" 
"count=9988345352" /*garbage*/
"buffer=@#%h" .   /*garbage*/
 
/*** but neither the  buffer is carried from user space to kernel space nor
the count, why?***/Please help me
out.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



No Subject

2001-02-20 Thread Srinivas Surabhi

In application program ,code for call to write system call is given
below...
  #include
main()
 {
  char* buff="hello"; 
  int count,fd;
 fd=open("/dev/pseudo",O_RDWR);
  write(fd,buff,5);
  }
  
In driver module code for getting the buffer and count 

#include
 
int psuedo_write(struct inode*in,struct file*fp,char *buf,int count)
{
  kprintf("<1>pseudo_write routine called \n");
  kprintf("<1>count=%d \n",count);
  kprintf("<1>buffer=%s \n",buff);
  return 0;
} 
/**so here after inserting the module into the kernel using insmod 
pseudo.o and executing the application cc -c pseudo_app.c, the o/p on
console is */

"pseudo_write routine called" 
"count=9988345352" /*garbage*/
"buffer=@#%h" .   /*garbage*/
 
/*** but neither the  buffer is carried from user space to kernel space nor
the count, why?***/Please help me out.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



floppy linux installation

2001-02-22 Thread Srinivas Surabhi




I need help from somebody.

Iwant to install Linux with just floppythrough FTP server.

I am searching in net regarding How to make FTP installation floppy .

can any body pls refer some web sites or procedure?.


thanks 
srinivas







-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



proc file system

2001-03-30 Thread Srinivas Surabhi


hi everybody,


   kindly give me a idea  how to write a file into proc filesystem.
i.e functions to be used?system calls to be be called?

adv .thanks for giving imm. reply

srinivas


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



proc inode

2001-06-12 Thread Srinivas Surabhi

hi everybody,

   when i tried to read the inode of proc file/directory
using a  pointer to dirent which is returned by the readdir().,
i am getting a different inode number(32449)instead of which
 is shown as inode 2 when ls -ia is done.

 hope it is clear.. 

  thanks for all who tried to clarify my doubt..

srinivas

 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/