Sponsored Content
Top Forums Shell Programming and Scripting sh : URGENT synchronisation insmod in script Post 86926 by crip01 on Tuesday 18th of October 2005 11:49:13 AM
Old 10-18-2005
sh : URGENT synchronisation insmod in script

Hello,
By now in linux 2.4, I have a sh script wich start 2 modules as follow :

/sbin/insmod module1.o
/sbin/insmod module2.o

I added an application in user space named "user_app" which communicate with module1 with a /proc.

I now tape the commands myself during code execution on a shell console :
>>/sbin/insmod module1.o &
>>./user_app
then when module1 insmod IS COMPLETED I do :
>>/sbin/insmod module2.o

I now would like to wright this in the start sh script , how should I wright this (background user_app launch and "wait for the end of module1 insmod ") ?

Many thanks for your help,

Celine
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

shared memory synchronisation

hello everybody i want to do synchronisation to access a shared memory bu i don't know too much how well i know that i should use semaphore have you any example of synchronisation of a shared memory by use of semaphore because i haven't find any thanks (0 Replies)
Discussion started by: student00
0 Replies

2. UNIX for Dummies Questions & Answers

insmod error - no such device

Hi Everyone, I am relatively new to Linux. After about three months of trying to compile a driver for a ESDCAN card, I finally found a version and kernel that worked. I am running Slackware V12.0 with kernel version 2.6.24.5-smp. When I use insmod to insert the driver file (esdcan-pci331.ko),... (1 Reply)
Discussion started by: Brian-UOIT
1 Replies

3. UNIX for Advanced & Expert Users

Thread synchronisation problem...

Hello, hope my english will be sufficient to be clear enough... I'm in progress on some script that should copy one big source file (200GB average) on one sata drive, to multiple (30+) sata drives. Hardware is not the problem but copy performance is... If i launch all copy process at the same... (4 Replies)
Discussion started by: Gnaag
4 Replies

4. UNIX for Dummies Questions & Answers

Need help on file synchronisation in unix

i want to do file synchronisation...its a client-server model..have to do system call 'ls -l' in both client and server ..the server has to keeep track of client files and have to keep a back up of client files..and tracking must be done based on time stamp.. suppose if client contains a file... (2 Replies)
Discussion started by: shilpam,edappal
2 Replies

5. Shell Programming and Scripting

rsync script for synchronisation and backup

hello, i need to modified my synch/back scripts.... i want that this script only syncro folders in destinationfolder. f.e. when in destination are two folders 1) admin 2) users but in SOURCE are three: 1) admin 2) users 3) antivirus the script should only increnmential sync the... (0 Replies)
Discussion started by: onkeldave
0 Replies

6. Ubuntu

Stack overflow i guess while insmod

I have built kernel 2.6.35 on my Ubuntu system with some specific requirement. I also built some app defined module with the same kernel. I booted up the built version and I find it did not work properly as there is some gui and other modules missing problem. But the system booted up and I did... (0 Replies)
Discussion started by: sunilsukumar4u
0 Replies

7. UNIX for Dummies Questions & Answers

insmod: Invalid module format error

I have open suse kernel kernel 3.1.0-1.2-desktop on which I used kernel source 3.1.10-1.2 downloaded from kernel.org. The module gets built. While loading a kernel module I am getting Invalid module format error with description "first_driver: no symbol version for module_layout" The... (5 Replies)
Discussion started by: rupeshkp728
5 Replies

8. Shell Programming and Scripting

Synchronisation of 2 arrays

If the element found in array2 doesn't exist in array1 i want i to be deleted. This code doesn't work correctly. What's wrong? Is there a simpler solution? for (( i=0; i<=${#array2}; i++ )) do for (( v=0; v<=${#array1}; v++ )) do if }" = "{$array1}" ] then count=1 break... (3 Replies)
Discussion started by: iums1
3 Replies

9. Programming

Thread synchronisation

hi, i have to do a program with following condition. please help me to write the program. conditions-i have to create a thread with handle called first and it should call the member function(may do anything lik print anything) of a class called thread1 and for example let take that this first... (5 Replies)
Discussion started by: senthil.march
5 Replies

10. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
RMMOD(8)						       Linux Module Support							  RMMOD(8)

NAME
rmmod - unload loadable modules SYNOPSIS
rmmod [ -aehrsvV ] module ... DESCRIPTION
rmmod unloads loadable modules from the running kernel. rmmod tries to unload a set of modules from the kernel, with the restriction that they are not in use and that they are not referred to by other modules. If more than one module is named on the command line, the modules will be removed in the given order. This supports unloading of stacked modules. With the option '-r', a recursive removal of modules will be attempted. This means that if a top module in a stack is named on the command line, all modules that are used by this module will be removed as well, if possible. OPTIONS -a, --all Do autoclean: tag unused modules as "to be cleaned", and also remove already tagged modules. Modules stay tagged if they stay unused since previous autoclean. These two passes avoid removing transiently unused modules. -e, --persist Save persistent data for the named modules, without unloading any modules. If no module names are specified then data is saved for all modules that have persistent data. Data is only saved if both the kernel and modutils support persistent data and /proc/ksyms contains an entry __insmod_modulename_Ppersistent_filename -h, --help Display a summary of options and immediately exit. -r, --stacks Remove a module stack. -s, --syslog Output everything to syslog(3) instead of the terminal. -v, --verbose Be verbose. -V, --version Print the version of modutils. PERSISTENT DATA
If a module contains persistent data (see insmod(8) and modules.conf(5)) then removing the module always writes the persistent data to the filename in the __insmod _P symbol entry. You can also save the persistent data at any time by rmmod -e, this will not unload any modules. When the persistent data is written to file, it is preceded by a generated comment line, #% kernel_version timestamp Generated comment lines start with '#%', all generated comments are stripped from the existing file, other comments are preserved. The saved data values are written to the file, preserving the existing order of comments and assignments. New values are added at the end of the file. If the file contains values that do not exist in the module then these values are preserved but are preceded by a generated comment warning that they are not being used. The latter operation allows a user to switch between kernels without losing persistent data and without getting any error messages. Note: Comments are only supported when the first non-space character on a line is '#'. Any non-blank lines that do not start with '#' are module options, one per line. The option lines have leading spaces removed, the remainder of the line is passed to insmod as an option, including any trailing characters. SEE ALSO
insmod(8), lsmod(8), ksyms(8), modprobe(8). BUGS
rmmod [-V | --version] should display version information and then exit immediately. Instead, it prints the version information and behaves as if no options were given. HISTORY
Module support was first conceived by Anonymous Initial Linux version by Bas Laarhoven <bas@vimec.nl> Version 0.99.14 by Jon Tombs <jon@gtex02.us.es> Extended by Bjorn Ekwall <bj0rn@blox.se> Updated for 2.1.17 by Richard Henderson <rth@tamu.edu> Updated for 2.2.2 by by Bjorn Ekwall <bj0rn@blox.se> Updated for modutils 2.3.20 by by Keith Owens <kaos@ocs.com.au> Persistent data for modutils 2.3.22 by by Keith Owens <kaos@ocs.com.au> Linux February 6, 2002 RMMOD(8)
All times are GMT -4. The time now is 10:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy