Hi all,

I am a newbie in solaris kernel knowledge, so i am sorry if my question is too 
stupid.

I have a process that's is using the system call poll all the time. I want to 
know which file descriptor is "polling".

Form headers i got this information.
poll.h

int poll(struct pollfd *, nfds_t, int);

typedef struct pollfd {
        int fd;                         /* file desc to poll */
        short events;                   /* events of interest on fd */
        short revents;                  /* events that occurred on fd */
    } pollfd_t;

I have done a truss to the process I can see the poll call:

7640/1:          0.0148 poll(0xFFFFFFFF7FFF0990, 1, 0)                  = 0

So I run scat and try to dump the pointer to the pollfd structure, but it 
doesn't work.

SolarisCAT(live)> sdump 0xFFFFFFFF7FFF0990 pollfd
read failed for pollfd: 8 bytes @ 0xffffffff7fff0990: Invalid argument

Anyone can help? pls.

Regards,
Roger.
 
 
--
This messages posted from opensolaris.org

Reply via email to