Re: where to start on kernel modules and NSS?

2007-07-03 Thread Ivan Voras

Z.C.B. wrote:

Have just been looking at sitting down and looking at writing a few
things, but I am a bit lost on where to start. Any suggestions on
things to read in regards to NSS and writing kernel modules?


These are not similar things and you don't need kernel modules for NSS. 
For kernel modules, you might try reading:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/index.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.html
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/geom-class/kernelprog.html



signature.asc
Description: OpenPGP digital signature


Re: p_vmspace in syscall

2007-07-03 Thread Nicolas Cormier

On 7/2/07, Nicolas Cormier [EMAIL PROTECTED] wrote:

Hi,
I am trying to map some data allocated in kernel to a user process
(via a syscall).
I need the proc's vmspace, but the value of p_vmspace of the input
proc argument is NULL ...
How can I get a valid vmspace ?

Thanks !


Ok, syscall function passed a proc* as arguments, I don't know where
this proc* come from but it works with:
struct thread *td = curthread;
p = td-td_proc;
--
Nicolas Cormier
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: p_vmspace in syscall

2007-07-03 Thread Roman Divacky
 Ok, syscall function passed a proc* as arguments, I don't know where

this does not make any sense... userland processes have no way to
determine where a proc is stored...

what exactly are you trying to achieve?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: where to start on kernel modules and NSS?

2007-07-03 Thread Stanislav Sedov
On Tue, 03 Jul 2007 11:04:17 +0200
Ivan Voras [EMAIL PROTECTED] mentioned:

 Z.C.B. wrote:
  Have just been looking at sitting down and looking at writing a few
  things, but I am a bit lost on where to start. Any suggestions on
  things to read in regards to NSS and writing kernel modules?
 
 These are not similar things and you don't need kernel modules for NSS. 
 For kernel modules, you might try reading:
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/index.html
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.html
 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/geom-class/kernelprog.html
 
 

Also, this document can serve a very good introduction:
http://caia.swin.edu.au/reports/070622A/CAIA-TR-070622A.pdf

-- 
Stanislav Sedov
ST4096-RIPE


pgp3fuiROpdZ8.pgp
Description: PGP signature