[PLUG] Creating a proc entry

2005-02-22 Thread Shrinand Javadekar
Hi!! I want to create a file in /proc which I would be using for some of interprocess communication. The code snippet is given below. However, it just does not seem to work :((. The code compiles perfectly but the function create_proc_entry returns NULL everytime :(. Is there something I'm miss

[PLUG] [PROG]Writing to a /proc entry

2005-03-20 Thread Shrinand Javadekar
Hi, I have a problem regarding a /proc entry. I created a /proc entry (/proc/spoon) from a kernel module. Now, there is a user mode process which has to access this entry and write some data into it. I am using the regular 'open' and 'write' system calls in the user mode process to open /proc/spo

Re: [PLUG] [PROG]Writing to a /proc entry

2005-03-21 Thread Shrinand Javadekar
> Are you sure if anything can be written to /Proc? if yes, I thiink > only root is able to write,. > If no one can write to /proc how is it used for communication between kernel mode and user mode? And all the code that I am trying out is being executed as root. Yet it does not work. In fact I

Re: [PLUG] [PROG]Writing to a /proc entry

2005-03-21 Thread Shrinand Javadekar
> If you are accessing /proc/spoon with user program > thats executed as root then theres no problem to write > /proc entries. I already did that and able to write to > /proc entry. > > > If no one can write to /proc how is it used for > > communication between > > kernel mode and user mode? > >

[PLUG] openSolaris

2005-03-24 Thread Shrinand Javadekar
The Solaris operating system is going to be made open source. For more details refer to the following site: http://www.opensolaris.org/ When it does get open source, will be allowed to discuss about it here on this group or will we restrict ourselves to Linux? Comments awaited :) -Shri -- _

[PLUG] A request

2005-03-31 Thread Shrinand Javadekar
Can someone give a live demo of kernel debugging? (In the meeting on this Sat or even otherwise) In fact, if we show people how to write a small module and also show them the use of the debugger, there will be many people who would get hooked into kernel programming. If such an activity has been

[PLUG] Just for pedantic purposes

2005-04-20 Thread Shrinand Javadekar
Hey all, Theres nothing gr8 in the question that i'm about to ask. Its just for letting you put your thinking hats on :). For the question, courtesy : kernelnewbies.org If I have an executable say 'N', but I do not want it to be executed (without modifyiing the .out file), how would I be able to

[PLUG] Accessing the file table in the kernel

2005-05-24 Thread Shrinand Javadekar
Every process has its own file table where its stores apart from other details the fds of the files it has opened and the current offset from where the next read/write operation will begin. How do I access this table in my kernel module? I want to change the offset of a particular file to EOF. -S

[PLUG] Changing d_name from dirent in getdents64

2005-05-26 Thread Shrinand Javadekar
What I am trying to do is something like this: For a file, say named 'config', I want to have 2 names for it ,say 'config' and 'donfig'. So when I do an 'ls' on that directory, I should be able to see 2 files 'config' and 'donfig' $ ls config donfig $ I DO NOT have the liberty of using symlinks.

[PLUG] Modifying the output of 'ls'

2005-05-27 Thread Shrinand Javadekar
What I am trying to do is something like this: For a file, say named 'config', I want to have 2 names for it ,say 'config' and 'donfig'. So when I do an 'ls' on that directory, I should be able to see 2 files 'config' and 'donfig' $ ls config donfig $ I DO NOT have the liberty of using symlinks.

[PLUG] Re: Modifying the output of 'ls'

2005-05-30 Thread Shrinand Javadekar
> > How about hard link? > Ideally no links should be used. Neither symlink, nor hard link. If we could get a solution without links then it would be gr8. However, I would also like like to know how could we do this using links. Thanks in advance -Shri -- _

[PLUG] System call interface

2005-07-06 Thread Shrinand Javadekar
If a function is written in a kernel module (and not hooked to any syscall) and that kernel module is loaded in memory, can user-land programs call that function? Also, does making an entry in the syscall table mean writing an interrupt handler? Thanks in advance -Shri -- ___

Re: [PLUG] vmware on 64 bit ubuntu

2009-05-13 Thread Shrinand Javadekar
On Tue, May 12, 2009 at 7:14 AM, wrote: > I'm trying to install vmware server 2.0 on ubuntu 8.10(64-bit) using > installer (.bundle) package, It gives me error, Vmware cannot be installed > on KVM enabled kernel. I'm using default kernel provided with Ubuntu 8.10. > -- > Sharique > __

Re: [PLUG] Serial Communication Code

2009-06-21 Thread Shrinand Javadekar
On Thu, Jun 18, 2009 at 10:25 PM, Suraj Swami wrote: > Hi, > > I trying to write a basic serial communication code in linux. I am well > verse to serial communication but have never done so in Linux. > > I tried many forums but they had solution to complex issue. And I just want > a basic code and

Re: [PLUG] Random number ( integer code )

2009-09-29 Thread Shrinand Javadekar
On Mon, Sep 28, 2009 at 12:14 PM, Suraj Swami wrote: > Hi, > > I was trying to generate random number integer in CPP ( gcc compiler ) using > rand() function. But it is giving some error. I have tried a few things. > Which did not work. As I am not at my home PC right now hence I am unable to > te

Re: [PLUG] Tomcat default home page not accessible for Linux (CENTOS) host

2009-09-30 Thread Shrinand Javadekar
On Wed, Sep 30, 2009 at 10:01 AM, Rajendra Sakpal wrote: > Hi Friends, > > I am accessing Tomcat homepage from a LINUX host deploying CENTOS 5.3. > Tomcat is deployed on WINDOWS machine.  I could access the TOMCAT homepage > from WINDOWS host. > > The WINDOWS host can be pinged from the CENTOS mac

[PLUG] Fwd: VMware pre-release with replay / reverse debugging for linux/gdb is available

2009-10-06 Thread Shrinand Javadekar
-- Forwarded message -- From: Michael Snyder Date: Mon, Oct 5, 2009 at 3:29 PM Subject: VMware pre-release with replay / reverse debugging for linux/gdb is available To: g...@sourceware.org Hello, For those who are interested, VMware has made available a free pre-release version