From owner-freebsd-hackers Tue Oct 28 02:27:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA12927 for hackers-outgoing; Tue, 28 Oct 1997 02:27:43 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from heron.doc.ic.ac.uk (bJ/ByRUjPKUpYxuK/GVjNAtkCv5lczTl@heron.doc.ic.ac.uk [146.169.2.31]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id CAA12920 for ; Tue, 28 Oct 1997 02:27:30 -0800 (PST) (envelope-from njs3@doc.ic.ac.uk) Received: from oak67.doc.ic.ac.uk [146.169.33.67] ([lSb+sQqe1dwEYK5zR0z/3Qt/Fr2qmEND]) by heron.doc.ic.ac.uk with smtp (Exim 1.62 #3) id 0xQ8rw-00049Q-00; Tue, 28 Oct 1997 10:27:28 +0000 Received: from njs3 by oak67.doc.ic.ac.uk with local (Exim 1.62 #3) id 0xQ8rs-00007f-00; Tue, 28 Oct 1997 10:27:24 +0000 From: njs3@doc.ic.ac.uk (Niall Smart) Date: Tue, 28 Oct 1997 10:27:23 +0000 X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: freebsd-hackers@freebsd.org Subject: Loading code from userland Message-Id: Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I was wondering how I can load code from user-land into the kernel in a manner similar to dlopen() and dlsym()? For example, if I had an encrypted file system then I might want to allow the user to load their own encryption module which defined a set of operations such as initialise(), encrypt_block(), decrypt_block() etc. I think this can be achieved using lkm's - is this correct? I was thinking that the module would call a function in the main body of the encrypted file system code to pass it an array of entry points into the module. Finally, can lkm's be compiled completely separately from the kernel or are they specific to a particular kernel configuration? Many thanks, Niall Smart