10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am getting this error:
Can't locate loadable object for module IO::Tty in @INC (@INC contains: /production/79p/perl5/lib/site_perl/5.28.0/x86_64-linux /production/79p/perl5/lib/site_perl/5.28.0 /production/79p/perl5/lib/5.28.0/x86_64-linux /production/79p/perl5/lib/5.28.0... (2 Replies)
Discussion started by: mrn6430
2 Replies
2. Linux
Hi everyone,
I am trying to prevent the ehci_hcd kernel module to load at boot time.
Here's what I've tried so far:
1) Add the following line to /etc/modprobe.d/blacklist.conf (as suggested here):
2) Blacklisted the module by adding the following string to
3) Tried to blacklist the module... (0 Replies)
Discussion started by: gacanepa
0 Replies
3. UNIX for Advanced & Expert Users
Hi all!
I am trying to register a device in an existing device class, but I am
having trouble getting the pointer to an existing class.
I can create a class in a module, get the pointer to it and then use
it to register the device with:
*cl = class_create(THIS_MODULE, className);... (0 Replies)
Discussion started by: hdaniel@ualg.pt
0 Replies
4. Programming
cannot generate .ko file on my linux, although it can generate module.symvers.
But when I copy .c file and Makefile to another linux computer, there's no problem.
The strange thing is: make is successfuly executed, and returned 0;
make output:
make -C /lib/modules/2.6.18-92.el5xen/build ... (4 Replies)
Discussion started by: vistastar
4 Replies
5. Programming
can a linux kernel module call libc functions, such as printf(), strcpy(), etc...? (9 Replies)
Discussion started by: vistastar
9 Replies
6. Shell Programming and Scripting
I am trying to use the GD module on a on Unix Solaris environment machine by including gd.pm from a temporary location
but I am receiving the following error:
perl -w polyline.pl > imageoutput.png
Can't locate loadable object for module GD in @INC (@INC contains:... (1 Reply)
Discussion started by: wadhwa.pooja
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Does anyone know if it is possible to know the current value of a kernel module parameters after the module is loaded. Are the values of the parameters advertised at some /proc or /sys location ?
The only thing I know is modinfo, that actually looks a the module .ko and gives a... (3 Replies)
Discussion started by: macL
3 Replies
8. SuSE
Hi All,
Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff.
Cheers,
Brendan (4 Replies)
Discussion started by: Brendan Kennedy
4 Replies
9. Solaris
I have Apache 2 webserver as delivered with the Solaris 10 installation.
How to verify if Apache is configured with loadable module support?
Or if needs to be recompiled with loadable module support. (2 Replies)
Discussion started by: kavera
2 Replies
10. Linux
Hi Everyone!
How can we make a socket() system call from a linux module executing in kernel space?
If any one knows, kindly tell me. It will be great.
I want to use the socket interface in linux kernel space for sending raw packets over the network.
Hamayun (0 Replies)
Discussion started by: mian_m_hamayun
0 Replies
CREATE_MODULE(2) Linux Programmer's Manual CREATE_MODULE(2)
NAME
create_module - create a loadable module entry
SYNOPSIS
#include <linux/module.h>
caddr_t create_module(const char *name, size_t size);
Note: No declaration of this function is provided in glibc headers; see NOTES.
DESCRIPTION
Note: This system call is present only in kernels before Linux 2.6.
create_module() attempts to create a loadable module entry and reserve the kernel memory that will be needed to hold the module. This sys-
tem call requires privilege.
RETURN VALUE
On success, returns the kernel address at which the module will reside. On error, -1 is returned and errno is set appropriately.
ERRORS
EEXIST A module by that name already exists.
EFAULT name is outside the program's accessible address space.
EINVAL The requested size is too small even for the module header information.
ENOMEM The kernel could not allocate a contiguous block of memory large enough for the module.
ENOSYS create_module() is not supported in this version of the kernel (e.g., the kernel is version 2.6 or later).
EPERM The caller was not privileged (did not have the CAP_SYS_MODULE capability).
VERSIONS
This system call is present on Linux only up until kernel 2.4; it was removed in Linux 2.6.
CONFORMING TO
create_module() is Linux-specific.
NOTES
The create_module() system call is not supported by glibc. No declaration is provided in glibc headers, but, through a quirk of history,
glibc does export an ABI for this system call. Therefore, in order to employ this system call, it is sufficient to manually declare the
interface in your code; alternatively, you can invoke the system call using syscall(2).
SEE ALSO
delete_module(2), init_module(2), query_module(2)
Linux 2014-05-10 CREATE_MODULE(2)