Software :: What Kernel File Holds The Functions For The Hardware Configuration

Jan 12, 2010

what 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


ADVERTISEMENT

Programming :: Kernel: Which GTD Entry Holds The IDT?

Dec 5, 2010

I have to add a new interrupt framework to the kernel (INT 81h). To add the interface descriptor to INT 81h I have to write to the IDT entry 81h. There are some functions of the kernel that can do this task but they can not be used in a module. So I will now do a patch to the kernel and don't know where to start.

Where is INT 80h interface descriptor written to the IDT? - So I could write it maybe the same way in the same function. Which GTD entry is used to write to the IDT (1, 2, 3 or ...) ? - So I can do some debugging.

View 1 Replies View Related

SUSE / Novell :: File Holds The Modules To Be Compiled With Mkinitrd

Jul 13, 2010

We are running SLES 10.3, I am running Novell's support advisor and it is reporting some old hardware that is failing on bootup, one being a QLogic card and another being flex net network adapter. I was looking around for where the file or directory is that holds the list of modules to be loaded when compiling the kernel but SLES does not seem to match other Linux distro's, at least from the other posts I read for where to find these.

View 3 Replies View Related

Programming :: Calling Kernel Functions From Userspace?

Feb 5, 2010

I'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.

View 2 Replies View Related

Programming :: How To Find Man Page Of Kernel Functions

Aug 2, 2010

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 Related

Software :: Conky Configuration And Supports Mathematical Functions?

Oct 29, 2010

I have 4 NTFS partitions and I want the info regarding those partition to be displayed as a whole. I'we mounted all my NTFS in /mnt but it doesn't works to refer only to the folder where the partitions are mounted and you have to refer to them individually, so i cant display them as a whole. Also if anybody knows if conky supports mathematical functions or if he knows a tutorial about that it would be great 'cause if so I could make it caluclate the free and used space that should be displayed regarding those NTFS partitions of mine.

View 6 Replies View Related

General :: Difference And Working Functions Between Kernel And Shell

Apr 4, 2011

I am the new child of the linux world. What is the difference and working functions between kernel and shell..

View 5 Replies View Related

Programming :: Convert Macro Defined Functions From Kernel In Visual C++?

Jun 27, 2009

I 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.

View 5 Replies View Related

General :: Deleted The /etc/rc.d/functions Folder And Functions.d Script And Turned Arch Machine Into A Brick?

Mar 19, 2011

None 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 Related

General :: What Does Kernel Entry In Grub Configuration File Mean

Jun 17, 2011

I have looked at the GNU GRUB Manual 1.99 at [URL] but I cannot find an explanation of what the kernel entry / command in the grub.conf file means. I get what's the meaning of that entry but where is described what it actually is and what are proper.

I suppose this entry / command was actual in GRUB Legacy, but I cannot find where it is described...

View 1 Replies View Related

Debian Configuration :: Syscall_table.S File Not Found In Arch/x86/kernel

Jul 31, 2010

I'm learning about the system calls in Linux, but I was not able to find the syscall_table.S file in the linux/arch/x86/ directory. Are the sources installed by default in Lenny ? Or do we've to install them manually.

[12:12 PM:/usr/src/linux/arch/x86/kernel]$ ls
asm-offsets.s  Makefile

These are the only files in the specified directory. I'm using the stock kernel.

[12:12 PM:/usr/src/linux/arch/x86/kernel]$ uname -r
2.6.26-2-686

View 3 Replies View Related

Debian Configuration :: Making A Configured Kernel Into A BzImage File?

Nov 17, 2010

My brother is working for a company that is making various types of embedded software. He's been trying to install Micro Core Linux on a device, and it worked after some manual kernel patching & configuring. The issue is this; he need to install this system on hundreds of similar devices. Is there a way of making the configured kernel into a bzImage, so that the kernel can be compiled on the other systems without any tweaking?

View 5 Replies View Related

Debian Configuration :: Change The Driver File And Compile Custom Kernel

May 3, 2011

When I only change a driver file manually, for example /newkernel/linux-source-.6.32/drivers/gpu/drm/i915_drv.h, do I need to run "make config" or similar like "make menuconfig" or can I just skip? I mean these steps:

1.) apt-get install linux-source-2.6.32
2.) mkdir ~/newkernel/
3.) cp /usr/src/linux-source-2.6.32.tar.bz2 ~/newkernel/
4.) cd /newkernel/
5.) tar xjf linux-source-2.6.32.tar.bz2
6.) cd linux-source-2.6.32
7.) cp /boot/config-$(uname -r) ./.config yes "" | make oldconfig
8.) change the driver file /newkernel/linux-source-2.6.32/drivers/gpu/drm/i915_drv.h manually
8.) make-kpkg clean
9.) make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers
10.) dpkg -i *.deb

Is this way OK or do I miss something?

View 14 Replies View Related

Programming :: C File Functions Crash Unless Root

Jun 24, 2011

I've encountered a problem when running a simple bit of code, I'm using c to read write data to a binary file. It works fine when I run as root. However when I run as a user it produces the file, however when I try to open / write after it's produced it caused a seg fault. Is there any reason file functions ( fopen etc ) would work for root and not a user and is there a way to fix this?

View 14 Replies View Related

Programming :: Define Functions Within Other Functions In C++?

Mar 11, 2010

Is it possible to define functions within other functions in C++? I know it is the case in other languages.

View 2 Replies View Related

Fedora :: Create A Shell Script File With Two Functions - Bash Scripting & /etc/bashrc

Oct 6, 2010

how 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.

View 1 Replies View Related

Applications :: Overwrite File Contents And Clear Firefox Cache + All The Normal Functions Of A System Cleaner

Oct 22, 2010

since arch has started using python3, bleachbit is broken, so i am looking for a system cleaner to replace it. i need something that will overwrite file contents and clear firefox cache + the all the normal functions of a system cleaner.

View 8 Replies View Related

Debian Configuration :: Is It 64bit Kernel Or 32bit Kernel Optimized For Amd64 Architecture?

Jan 24, 2010

I recently installed debian squeeze 32bit on a second partition of my amd athlon 64 X2 dual core machine.Currently it is using linux-image-2.6.32-trunk-686 kernel.But linux-image-2.6.32-trunk-amd64 is available.on the repository.Is it a 64bit kernel or 32bit kernel optimized for amd64 architecture?

View 12 Replies View Related

Debian Configuration :: Update My Kernel From 2.6.32 To 2.6.38 - Error - Unable To Boot Into The Kernel

May 13, 2011

I am using DEBIAN 6.0 and I wannna update my kernel from 2.6.32 to 2.6.38. Every time, I do it but after the installation & rebooting into the new kernel it gives me error "UNABLE TO BOOT INTO THE KERNEL".

View 1 Replies View Related

Fedora :: Which Package Holds The Serial Terminal

Mar 14, 2011

Which package holds the serial terminal cu or similar program?

View 2 Replies View Related

Ubuntu :: 250 GB External Hard Drive Only Holds 239 MB

Mar 15, 2011

I have a 250 GB Seagate Expansion Portable Drive that can't hold more than 239 MB. I'm trying to copy an 804 MB file, but I get a "no space left on device" error message after only 239 MB of it has been copied. In other words, the drive's capacity has mysteriously shrunk by over 99.9%.

View 2 Replies View Related

General :: What Is The Command To Find Out What CPU Architecture The Box Holds Out

Apr 8, 2010

What is the command to find out what CPU architecture the Linux Box holds out of following:

[Code]...

View 12 Replies View Related

Slackware :: -current 32 Bit Holds Pan-0.134-x86_64-1.txz Package

Feb 25, 2011

I would like to report that at time of writing the package pan-0.134-x86_64-1.txz is shipped with -current 32 bit. It's not mislabeled, I think it's the actual x86_64 package:

Code: $ pan bash: /usr/bin/pan: cannot execute binary file

View 4 Replies View Related

Debian Configuration :: Nvidia Kernel Module With Custom Kernel

Jan 24, 2010

I have a problem with my custom kernel when I want to create the Nvidia kernel module.After this finished I installed the image and headers and created the Nvidia kernel module. Everything worked fine.However, if I remove the linux-source from my home directory then I can't create the kernel module.Even though I have the headers for the kernel installed.

View 2 Replies View Related

Debian :: Which Directory/folder Holds The Wallpaper Files

Jun 17, 2010

Debian 5.04
Gnome desktop

Which directory/folder holds the wallpaper files?

View 7 Replies View Related

Debian Configuration :: Squeeze D-u - Kernel Configuration Skipped

Jul 6, 2010

I have a set of vm's with stable, testing, and sid to keep track of how things are going. When I did an apt-get dist-upgrade with squeeze last week, things seemed to OK (350 package updates) until the end. It didn't seem to like and / or was confused by a kernel dependency.

I am not too concerned yet. Because these are in vm's, I do a snapshot before any significant change. I can futz around with impunity because I have that backup.

I re-booted, and tried the apt-get dist-upgrade again with same results. I think I also tried apt-get -f install.

So I reverted to the snapshot, and will simply try again in the future. I recall that with lenny as testing, the font-desktop was really screwed up for about a period of 6 weeks.

However, just in case someone else runs into this:

1) a re-boot worked, but the failure of apt-get made me nervous enough to revert.

2) waiting for corrections has seemed to work in the past (with a single exception with a 4-disk SCSI software RAID10 update that failed to re-boot lenny successfully after what seemed to be a minor update -- that was on a real system, not a vm. I haven't gotten back to look at that.)

View 14 Replies View Related

Fedora :: Bring Up Whatever Service Holds The Network Settings Without GNOME?

Aug 27, 2010

I have a problem with my Fedora system. Whilst I was messing around with my graphics drivers I managed to totally screw up the system, now my desktop won't start, leaving me with just the command prompt. In order to fix it I will need to get my wireless adapter connected to my home network, this is proving tricky. I understand that NetworkManager is responsible for bringing up the network but unfortunately without starting GNOME I don't have the settings available to me (through the nm-cli) or a way to configure it.

Is there a way to bring up whatever service holds the network settings without GNOME? In the meantime I am looking into alternative ways of configuring NM, perhaps through the DBUS interface? Even so, I suspect that I will still need a settings ervice at the end of it..

View 6 Replies View Related

Fedora :: 0 Byte Initrd File In Kernel Kernel-2.6.27.25-170.2.72.fc10.x86_64

Jul 13, 2009

I'm I seeing this wrong or is the initrd file in kernel-2.6.27.25-170.2.72.fc10.x86_64 a zero byte file and that's why I can't boot with it( get this "kernel panic not syncing VFS unable to mount root fs on known -block (0,0)" message)

View 2 Replies View Related

Fedora :: Find Kernel.spec File For Compile Vanilla Kernel?

Nov 29, 2010

i want to compile the vanilla kernel 2.6.37-rc3, but i want to obtain a .rpm file. I found this guide long time ago (i used it many times) but it use src.rpm package and the contained kernel.spec file have many lines for adding patches. Someone know where can i download a kernel.spec for vanilla kernel or a guide to obtain an rpm file

View 4 Replies View Related

Debian Configuration :: Fstab Configuration - Failed To Open /proc/filesystems: No Such File Or Directory

Aug 23, 2011

I have some errors when run the mount -all command: mount: wrong fs type, bad option, bad superblock on /dev/sdc5, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail  or so Failed to open /proc/filesystems: No such file or directory

[Code]..

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved