not able to get controlling tty

2005-04-13 Thread Rajesh Ghanekar
Hi, I have a program which prints the name of the controlling terminal. The code snippet is as follows: int main(int argc, char **argv) { int mib[4], len; struct kinfo_proc buf; udev_t ttydev; register struct dirent *dirp; register DIR *dp; struct stat

physical address to virtual address conversion

2005-03-30 Thread Rajesh Ghanekar
Hi, I am trying to convert a physical memory location (address 0x000F) to virtual memory address in kernel module with pmap_map() / pmap_enter(). Whenever i call these two functions, system hangs. Is this a proper way for conversion? The same physical address can be accessed from the userspa