* how to export a symbol from kernel to be accessible in module.
@ 2004-04-26 7:23 Saifuddin
0 siblings, 0 replies; only message in thread
From: Saifuddin @ 2004-04-26 7:23 UTC (permalink / raw)
To: netfilter
Hello everyone,
Linux kernel version 2.4.24
ipc/shm.c
static struct ipc_ids shm_ids;
I want to access this variable in other kernel modules.
for this a macro is defined in ipc/shm.c
#define shm_get(id) ((struct shmid_kernel *)ipc_get(&shm_ids,id));
for this I have written a function in ipc/shm.c as below: -
void *sys_getshmhandler(int id){
return (void *)shm_get(id);
}
EXPORT_SYMBOL(sys_getshmhandler);
ipc/Makefile
export-objs := shm.o.
The kernel compiles successfully, but when I boot the fresh kernel, I do not get the exported symbol in /proc/ksysm.
What am I missing?
Can anybody figure out?
Thanks in advance.
--
Regards,
Saifuddin,
saif@odysseytec.com.
saifuddin_it@yahoo.co.in.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-26 7:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-26 7:23 how to export a symbol from kernel to be accessible in module Saifuddin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox