Sponsored Content
Top Forums Programming Make cannot generate .ko linux kernel module Post 302577112 by JohnGraham on Monday 28th of November 2011 08:26:54 AM
Old 11-28-2011
That is strange... have you tried doing an "updatedb && locate whatever.ko"?
 

9 More Discussions You Might Find Interesting

1. Linux

Making Socket System Call From Linux Kernel Module?

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

2. SuSE

max number of slabs per kernel module (kernel 2.6.17, 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

3. UNIX for Dummies Questions & Answers

Linux kernel module parameters

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

4. Linux

How to convert Linux Kernel built-in module into a loadable module

Hi all, I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/. I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies

5. IP Networking

kernel module

Hi All, I need to develop a kernel module which changes the IP address of a package according to its mac address. It would be a sort of L2 Nat. Somebody know if I can do this using netfilter?? Thanks. (2 Replies)
Discussion started by: lagigliaivan
2 Replies

6. Programming

can a linux kernel module call libc functions?

can a linux kernel module call libc functions, such as printf(), strcpy(), etc...? (9 Replies)
Discussion started by: vistastar
9 Replies

7. UNIX for Advanced & Expert Users

Kernel Module Debugging

Question may seem illogical but I still need clarification. Can we debug kernel modules loaded on my target system using kdb / kgdb without using any other system or remote debugging? In other words my question is can we use kdb/kgdb to debug kernel modules running on same system? (2 Replies)
Discussion started by: rupeshkp728
2 Replies

8. UNIX for Advanced & Expert Users

Get pointer for existing device class (struct class) in Linux kernel module

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

9. Linux

Unload kernel module at boot time (Debian Wheezy 7.2, 3.2.0-4-686-pae kernel)

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
updatedb(8)						      System Manager's Manual						       updatedb(8)

NAME
updatedb - update a database for mlocate SYNOPSIS
updatedb [OPTION]... DESCRIPTION
updatedb creates or updates a database used by locate(1). If the database already exists, its data is reused to avoid rereading directo- ries that have not changed. updatedb is usually run daily by cron(8) to update the default database. EXIT STATUS
updatedb returns with exit status 0 on success, 1 on error. OPTIONS
The PRUNE_BIND_MOUNTS, PRUNEFS, PRUNENAMES and PRUNEPATHS variables, which are modified by some of the options, are documented in detail in updatedb.conf(5). -f, --add-prunefs FS Add entries in white-space-separated list FS to PRUNEFS. -n, --add-prunenames NAMES Add entries in white-space-separated list NAMES to PRUNENAMES. -e, --add-prunepaths PATHS Add entries in white-space-separated list PATHS to PRUNEPATHS. -U, --database-root PATH Store only results of scanning the file system subtree rooted at PATH to the generated database. The whole file system is scanned by default. locate(1) outputs entries as absolute path names which don't contain symbolic links, regardless of the form of PATH. --debug-pruning Write debugging information about pruning decisions to standard error output. -h, --help Write a summary of the available options to standard output and exit successfully. -o, --output FILE Write the database to FILE instead of using the default database. --prune-bind-mounts FLAG Set PRUNE_BIND_MOUNTS to FLAG, overriding the configuration file. --prunefs FS Set PRUNEFS to FS, overriding the configuration file. --prunenames NAMES Set PRUNENAMES to NAMES, overriding the configuration file. --prunepaths PATHS Set PRUNEPATHS to PATHS, overriding the configuration file. -l, --require-visibility FLAG Set the "require file visibility before reporting it" flag in the generated database to FLAG. If FLAG is 0 or no, or if the database file is readable by "others" or it is not owned by mlocate, locate(1) outputs the database entries even if the user running locate(1) could not have read the directory necessary to find out the file described by the data- base entry. If FLAG is 1 or yes (the default), locate(1) checks the permissions of parent directories of each entry before reporting it to the invoking user. To make the file existence truly hidden from other users, the database group is set to mlocate and the database per- missions prohibit reading the database by users using other means than locate(1), which is set-gid mlocate. Note that the visibility flag is checked only if the database is owned by mlocate and it is not readable by "others". -v, --verbose Output path names of files to standard output, as soon as they are found. -V, --version Write information about the version and licence of locate on standard output and exit successfully. EXAMPLES
To create a private mlocate database as an user other than root, run updatedb -l 0 -o db_file -U source_directory Note that all users that can read db_file can get the complete list of files in the subtree of source_directory. FILES
/etc/updatedb.conf A configuration file. See updatedb.conf(5). /var/lib/mlocate/mlocate.db The database updated by default. SECURITY
Databases built with --require-visibility no allow users to find names of files and directories of other users, which they would not other- wise be able to do. NOTES
The accompanying locate(1) utility was designed to be compatible to slocate and attempts to be compatible to GNU locate where possible. This is not the case for updatedb. AUTHOR
Miloslav Trmac <mitr@redhat.com> SEE ALSO
locate(1), mlocate.db(5), updatedb.conf(5) mlocate Jun 2008 updatedb(8)
All times are GMT -4. The time now is 11:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy