General :: Difference And Working Functions Between Kernel And Shell
Apr 4, 2011I am the new child of the linux world. What is the difference and working functions between kernel and shell..
View 5 RepliesI am the new child of the linux world. What is the difference and working functions between kernel and shell..
View 5 RepliesIn shell scripting, what do or what does this symbol do or mean ? "."(octet), ";" (semicolon)? Would really like to know? Cause I saw a written script if [ -f /etc/file ];then. . /etc/file. Wondering, the "." is meant to be source, so is "." the same thing as "source" ?
View 2 Replies View RelatedBut what is the difference between this...
Code:
my_fucnction () {
echo "Hello World"
}
Code:
function my_fucnction {
[Code]...
Difference between shell and c programing
View 4 Replies View RelatedNone of my daemon scripts work now, and the startup process displayed errors. Should I reinstall the OS and start from scratch, or is there a way to recover these files? Is there a way to rebuild the files I deleted?
View 2 Replies View Relatedhow come I can create a shell script file with two functions, I can execute the file, but when running declare -f, the functions are not on memory, and when invoking the function bash returns invalid. In the other hand, I can copy & paste the two functions at the end of my /etc/bashrc file.... then I can called the function by name.... and the commands within that function run on my session. here is a print of all my bash packets:
[Code]....
Does Fedora has restrictions on shell scripting? I haven't touch bash in seven years, so if things have change on it I'm behind on it, and sorry for my ignorance.
I wonder if there is anyway to make a user-defined bash shell function global, meaning the function can be use in any bash shell scripts, interactively or not. This is what I attempted:
Code:
$ tail -n 3 /etc/bashrc
echotm () {
echo "[`date`] $@"
}
[code]....
what difference between user and kernel space.
View 2 Replies View RelatedWhat is the difference between kernel-source.x.x.x.x.rpm and kernel.x.x.x.src.rpm?
View 2 Replies View RelatedI'm trying to call some kernel functions from userspace, but I'm not sure if I'm doing it right. The functions control a pulse width modulator on an embedded platform. To pick one at random, the function:
Code:
struct pwm_device *pwm_request(int pwm_id, const char *label);
is defined in linux/pwm.h, and the implementation uses the macro EXPORT_SYMBOL(pwm_request), so I should be able to call this from user-space... right?
Anyway, I've got linux/pwm.h to #include in my source so the compiler knows what it's doing, but what do I link against? The only place in by kernel build tree where I can see a symbol pwm_request defined is in object files like vmlinux.o, built-in.o in the directory, etc. which I don't think I should be linking against.
My distribution is Fedora 12. When I want to get the infos of kernel functions such as printk, i type man printk, failed. I look up some articles and learn that in some distributions the kernel functions is in section 9 of man page. Then i type man 9 printk also no reply. How can i get man pages of kernel functions ?
View 2 Replies View RelatedIt sounds like he's making a difference between the kernel "source code" and the kernel itself(as in the downloaded file/ files) but the way he talks about both is the same.So then, if one had already "installed" the "kernel sources code," why would he need the "tarball with the newest Linux kernel?" He's already "installed" a kernel, right?
View 3 Replies View Relatedwhat kernel file holds the functions for the hardware configuration. I'm interested in finding the hardware timer of the linux and the DMA configuration file. I assume there is a single file that holds configuration data for the platform.This probably is executed before the kernel is started. As is see it this must be some hardware abstraction layer file because the actual kernel code is not platform dependent.
View 1 Replies View RelatedI am dealing with some Linux kernel code, which define most its functions with Macros.The trouble I am having is to use those code in user space in Windows.
For example, I have a function defined like this:
#define list_for_each_entry_safe(pos, n, head, member)
for (pos = list_entry((head)->next, typeid(*pos), member),
n = list_entry(pos->member.next, typeid(*pos), member);
&pos->member != (head);
pos = n, n = list_entry(n->member.next, typeid(*n), member))
And in user space code, I call it in this way:
list_for_each_entry_safe( pcre_item, tmp,
&(((pcre_list_head_t *)(hr.value))->head), list)
{
// My code to handle each element in the list
}
This is working like a charm in Linux, but I got errors in Windows:
It reminds me missing ';' after 'list_for_each_entry_safe( pcre_item, tmp,
&(((pcre_list_head_t *)(hr.value))->head), list)'.
Does this kind of linux code not working in Windows at all? (Linux is in GCC C stand and VC is ANSI C) I prefer not to convert them to normal functions but keep it the way if it could be working under windows by some tricks.
I have installed CentOS 5.4 & am trying to install VirtualBox on it. To install VirtualBox I run the command:
yum localinstall path/Virtualbox.rpm
It runs through the dependency check & says everything is fine. It installs the rpm & then says that compiling of the kernel module failed & that VirtualBox will not start until this is fixed, & that the most like cause is that the kernel sources are not installed.
I have installed the kernel-devel package & have the kernel source tree located at /usr/src/kernel/2.6....
I just bought an Apple (intl.) keyboard because of its stylish look and weight but I can't figure out how to map keys to get certain functions that I'm used to working.
Particularly Alt+Ctl+F1~6 when wanting to switch to regular terminal and print screen.
Is there a tutorial out there that explains how to map keys?
What is the difference between filename and ./filename? Under what circumstances is one preferred to the other?
View 5 Replies View RelatedWhats the difference, and when do you use which?
View 2 Replies View RelatedI have a application on linux , I can excute it in command line . but when I invoked it via CGI(perl) , it can not excute successfully , so I suspected that there is something different between SHELL and CGI environment , but I haven't figure out what the difference is .
View 3 Replies View RelatedI searched around but I can't get a good handle on the difference between the following formats in BASH shell.
$VAR
$(VAR)
$((VAR))
$($VAR)
$(($VAR))
Can someone explain it, or point to a clear, concise document explaining it?
Is it possible to define functions within other functions in C++? I know it is the case in other languages.
View 2 Replies View RelatedI tried to run a ksh shell script, it is very short, but not working.
when I run it, it returns something like...
I copied this script online and tried to use it. I am using ubuntu vm.
What is the difference between those kernels that you can install from this PPA:
[URL]
ppa:kernel-ppa/ppa
...which currently has 2.6.35-19.25-generic
AND
[URL]
...which currently has 2.6.35.3-maverick (even has later version 2.6.36-rc2-maverick)
AND
[URL]
...which currently has 2.6.35.3 (even has later versions 2.6.36-rc2 and 2.6.36-rc2-git4)
Are they the same? Which is newer? Is 2.6.35-19-generic = 2.6.35.3?
I was going through some exercise given in my school. I have read the C book but I am not able to understand some part. That is static variable. What exactly is a static variable and what does it do? I saw in Linux Kernel Programming external and exported are also some thing. I am not getting the difference between static,EXPORT_SYMBOL,external variable types. If I make a kernel module then how will I make sure that my variable is visible to the kernel. Is this what it is all talking about? I have checked this page [URL].
View 2 Replies View RelatedWhat is the difference between kernels which come from the update repository and the plus repository ? Often the same version comes from both, but one says centosplus at the end the other, from the update repository, does not.
View 1 Replies View RelatedJust trying to execute cd command in a .cshrc file (bash shell in SUSE Linux) it says."No such file or directory".Do you see any reasons for this
View 3 Replies View RelatedA few upgrades ago, I had also a desktop-kernel installed. I tried starting with the standard and the desktop kernel, but could not see a difference. Why this desktop-kernel and what's the difference with the standard kernel?
HP laptop with Intel(R) Core(TM)2 CPU T5600 - OpenSUSE 11.3 -KDE4.4.4
I installed Ubuntu Server recently and really liked the ability to customized everything that was installed on it. Although I'm a little cautious about installing the server edition on my laptop, is there a Debian based distro that comes as empty as Ubuntu Server? If not, what's the difference between the server kernel and the one that ships with Ubuntu Desktop?
View 9 Replies View RelatedI usually custom compile my kernel and generate the header files with the following command:
Code:
fakeroot make-kpkg --initrd --append-to-version=generic-ide kenrel_image kernel_headers
However, I noticed that there are some difference in the headers files that get generated with the above command as compared to the header files that are available from Debian repo. For example, the header files for 2.6.24 kernel have files like:
Code:
debian:/usr/src/linux-headers-2.6.24-etchnhalf.1-686/arch/x86# ls Kconfig Kconfig.cpu Kconfig.debug kernel Makefile Makefile_32 Makefile_32.cpu Makefile_64 However, if I custom compile the above kernel from Debian sources (2.6.24), the headers files does not have the above files:
Code:
debain:/usr/src/linux-headers-2.6.24-generic-ide/arch/x86# ls
boot ia32 Kconfig.cpu kernel lib mach-es7000 mach-visws Makefile mm pci vdso xen
crypto Kconfig Kconfig.debug lguest mach-default mach-generic mach-voyager math-emu oprofile power video
As you can see from above output, files like Makefile_32, Makefile_32.cpu are not present, if I generate kernel headers files using the make-kpkg command as mentioned in the beginning of the post. I happened to notice the above issue, while I was trying to compile a out-of-tree kernel module and the "make" command for those sources (some graphics card drm module) worked with the default header files (linux-headers-2.6.24-etchnhalf.1-686) but did not work with (linux-headers-2.6.24-generic-ide) because it did not find the Makefile_32. Although I was able to fix the problem by copying the Makefile_32 from linux-headers-2.6.24-etchnhalf.1-686 but I would like to know why there is a difference. This is bit of a concern because it unnecessarily breaks the out-of-tree module compilation process because of trivial reasons.
I have a system with a missing or damaged kernel and I need to reinstall some software to fix it (see this thread for reference removed xen and kernel is gone). I feel fairly certain I can fix my system with the info in that thread however I don't know if this was a 32bit or 64bit system. How can I tell after using the dvd and linux rescue or does it even matter?
View 1 Replies View Related