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.
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.
I want to avoid kernel id in Grub entry. I have searched before and one poster (can't find it again) posted a very simple Fedora Grub entry that just pointed to Fedoara's menu.lst. which worked.
For Suse I use: title openSUSE 11.1 (on /dev/sda7) by symlinks root (hd0,6) kernel /boot/vmlinuz root=/dev/sda7 splash=silent showopts vga=0x31a initrd /boot/initrd savedefault boot
I nave tried: title Fedora root (hd0,4) rootnoverify (hd0,4) chainloader +1
Where Fedora is on sda5 but, doesn't work for some reason.
Lately when Fedora 12 updates the kernel it defaults to the last kernel entry and not the newest one. However I set grub to boot entry 0 as the default which is allways the new kernel. It runs like this fine until the kernel updates then it seems to change from 0 to 1 on its own is this a new planned aspect of the new kernel being installed?
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...
I have manually added an entry for Ubuntu in my grub menu, using Yast. But every time the kernel is updated, this entry disappears. On the other hand, the one for Windows, that was added during OpenSuse's installation, is still there. So how can I keep this entry for Ubuntu ?
Edit : when I save the menu configuration in Yast, I get the following message : Code: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) kbuildsycoca4 running... kbuildsycoca4 running...
I'm trying to make a program to simulate a parabolic movement, so i've added 2 entries, one for the initial velocity and other for the angle, anyway you probably don't care about that xD what i want is to take the number entered in the entry and put it in a variable to do the math, and then show everything in a dialog or something. how do i do that?
I have a kernel module program which is used to create a entry in the proc file system. I have to read and write values in the entry. Its taken from a online tutorial stuff.how to write the value to the proc entry in the program ?
I need to create and access a very large number of directories (and by large I mean millions). Each directory's name consists only of numbers, which are incremented every time a new directory is created (so there will be directory 1, 2, and so on).Of course I could just dump all these directories under the same parent directory, but I reckon I would run into filesystem limits. Moreover, I presume that entry lookup is not a O(1) operation, which means that lookup does not scale well.
One solution is to use some sort of prefix tree for storing the data. In this scheme, the data for directory "1234" would actually be stored in "/1/2/3/4".This solution has the advantage that each subtree never has more than 10 entries, but the disadvantage of requiring as many individual lookups as the length of the path.There are also intermediate solutions: using a maximum of 100 entries per directory, "1234" would become "/12/34", per example.In order to choose the best scheme, I must know more about the scalability of directory lookup under Linux. What's the maximum reasonable number of entries for a directory before lookup becomes too slow? Does someone know exactly what are the limitations of the algorithm used for directory lookup?
i want to make program that processing entry in log on real time... I have try to pass "tail -f -n 1 /var/log/messages" command from .runtime().exec and process the output,, description of the algo is like this
-passed to exec() -read output -if not same as previous value procces it
but sometimes it loose some entry to procces, maybe it occur when proccesing another entry is added by system...
I have set up a MySQL database which has only three fields for user-name, password and index number. But there is a LOT of data (thousands of columns) which would take too long to enter manually. I'm sure MySQL must have a file format whereby a single large file containing different data types can be successfully automatically imported and the various data elements distributed to their intended fields. Does anyone know which characters MySQL uses as field seperators for this formatting of data, or is there a program already written which can take raw data and organize it into a SQL compatible file?
I was hoping to get some pointers on how to rename files based on database entry. I got hundreds of thousands of files that has GUID name assigned to it. only way to find out the file name is to look up the database table. Its obvious that this is not efficient. I couldn't find any tutorials on how to do this. Please point me to right direction. A starting point would be very helpful.
I am writing a sample nasm program via terminal.It's a basic one ,it only demonstrates the usage of the zero and sign flags and print relevant message to the output. Here are the code:
Code:
SECTION .data; data section errMsg:db "Error !",10 errLen:equ $-errMsg zeroMsg: db "Zero flag",10 zeroLen: equ $-zeroMsg
This is an odd one. I have a C program that calls umount to unmount a volume. A simplified case looks like this:
Code: int main() { int rc = umount2("/v0", MNT_FORCE); if (rc != 0) { printf("Unable to unmount volume /v0, err='%s'", strerror(errno)); code....
I also discovered the reverse effect with calling mount() in code. When I make a call like Code: mount(drive, volume, "xfs", MS_NOATIME, NULL); the indicated drive is mounted since I can access the files as expected, but df doesn't show the drive has been mounted.
Why is my C code behaving this way? What do the mount/umount commands do when run from the command line that I'm not doing in my C code?
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%.
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
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..
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.
I write the network driver. Transmission of packets in user space I do through netlink socket`s. In user space there is a handling of packets and their transmission on other device (however, it isn't important).
Problem in that any time, packets through the driver in system, and is reverse, are transferred normally. But then there comes the moment when the kernel crash. If to look in syslog it seems to me that comes deadlock. Also I think that it is related with netlink socket`s.
I can't find the information on that anywhere how correctly to use netlink socket`s in kernel space. Can at you will any a reason into the account of synchronization of sockets and the driver in kernel space?
Which command should I use programmatically (in ldap.h) to change only ONE of the attributes above? say i only want to change the userPassword from value secret -> notasecret
do you have any code to flash led lights with paralel port (device driver programming)or any lecture about this subject .if there is a working code this would be better ofcourse.
I have the following error on one of my servers. Is there a way to tell which directory is exactly having the problem? if there is, if i delete that directory, will that resolve the problem or no?kernel: EXT2-fs error (device md(9,0)): ext2_check_page: bad entry in directory #10158084: unaligned directory entry - offset=0, inode=605471640, rec_len=7606, name_len=177
the kernel is developed for a specific module.there is no gcc compiler.how can I modify the kernel to include GCC rhow to install GCC on the the linux system. the memory is as low as 1GB. I need to install the smallest GCC possible (only for C, C++)
I just started taking OS implementation class, and you might wonder why im not asking this from my professor, well I have but he said its too soon.I want to know that if someone were to develop a new kernel , where would they start ?If you could just let me know where to start I would appreciate it very much.