Ivan wrote: > Hi, > > Does somebody know if there's a mechanism in the Solaris kernel which allows > us to call userspace applications? For example I would like to call host to > determine the IP adres of a host from the kernelspace....
There is no general purpose mechanism, however there are a few existing cases where a kernel module upcalls to userland. Usually this is done using doors and requires that you provide your own userland daemon that does a door_create(3C) and passes the file descriptor to the kernel (usually via a syscall or ioctl). It isn't a trivial bit of code to implement but if you really need it it is doable. If I understand your question correctly you have a hostname as a string in your kernel module and want the IP address ? How did you end up in the kernel with a hostname ? -- Darren J Moffat _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
