Jump to content
Compatible Support Forums

kobedf

Members
  • Content count

    32
  • Joined

  • Last visited

    Never

Community Reputation

0 Neutral

About kobedf

  • Rank
    newbie
  1. kobedf

    Block driver

    Hi i am building a block driver.It is supposed to emulate the physical driver by using a file.Furthermore , the writing takes place inside a kernel thread. I have a vdisk_request function where i do blkdev_dequeue_request(req); and then put the requests in a queue The kernel thread than takes requests from the queue and writes the info to the file.After the writing i do end_that_request_last(req); When i call this function i get a kernel BUG at drivers/ll_rw_blk.c:2167 invalid operand:0000[#1] At line 2167 i find BUG_ON(!list_empty(&req->queuelist)); in the __blk_put_request function. I understand that we need to obtain a lock to do any change on the request queue.I have a lock in my disk structure but if i try spin_unlock(&dev->lock) or spin_lock(&dev->lock) the program just ignores the call ( which is correct behavior on a single processor system) Any idea what the problem could be? thanks
  2. kobedf

    tty

    hello i am trying to write a chat program. I use a server entity to broadcast a message send by an user , to all users. What i want to do is , after someone finished typing a message and hits enter , to make that line dissappear while at the same time allowing normal behavior to the read function. the line will be received from the server later. How can i accomplish this? thanks
  3. kobedf

    SSH

    got any idea how can i logon using SSH but having one password when i logon locally and a different one when i am using ssh but with the same account ? thanks
  4. kobedf

    mouse

    i have debian sid i recently installed the 2.6.8 kernel but since then in cannot get the mouse running . i have a Ps/2 mouse that worked fine with the older 2.4.20 kernel I took the XFree86config-4 file from Knoppix 3.6 but it still doesn't work......although Knoppix works fine... I get no error messages ....gnome starts fine but no mouse.. any ideas......? or part of the XFree86Config file for a similar distro thanks
  5. kobedf

    2.6.9

    i tried compiling my kernel as in http://www.desktop-linux.net/debkernel.htm at make-kpkg buildpackage -rev Custom.1 kernel_image i get this message ..... In file included from drivers/char/drm/gamma_drv.c:42: drivers/char/drm/gamma_context.h: In function `gamma_context_switch_complete': drivers/char/drm/gamma_context.h:193: error: structure has no member named `next_buffer' drivers/char/drm/gamma_context.h:193: error: structure has no member named `next_buffer' In file included from drivers/char/drm/gamma_drv.c:44: drivers/char/drm/gamma_old_dma.h: In function `gamma_clear_next_buffer': drivers/char/drm/gamma_old_dma.h:40: error: structure has no member named `next_buffer' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:42: error: structure has no member named `next_queue' drivers/char/drm/gamma_old_dma.h:44: error: structure has no member named `next_queue' In file included from drivers/char/drm/gamma_drv.c:46: drivers/char/drm/drm_drv.h: In function `gamma_release': drivers/char/drm/drm_drv.h:808: warning: implicit declaration of function `gamma_ctxbitmap_fr ee' make[5]: *** [drivers/char/drm/gamma_drv.o] Error 1 make[4]: *** [drivers/char/drm] Error 2 make[3]: *** [drivers/char] Error 2 make[2]: *** [drivers] Error 2 make[2]: Leaving directory `/usr/src/kernel-source-2.6.9' make[1]: *** [stamp-build] Error 2 make[1]: Leaving directory `/usr/src/kernel-source-2.6.9' make: *** [stamp-buildpackage] Error 2
  6. kobedf

    sound

    ??
  7. kobedf

    boot debian

    doesn't this sequence boot with the kernel on the FDD also?
  8. kobedf

    bash

    i'm sorry if i'm iritating you with all those questions ....but......i need help thanks egorgry for your help one more when using a terminal ...suppose i run a program (say ./P ) 10 times...than when i try to get through the list of the recently used commands with the UP and DOWN arrows i find ./P placed there 10 times. I'll try to change this myself , but i need to know what file i should modify ...or how can i access the shell buffers. thanks
  9. kobedf

    sound

    output of lsmod is Module Size Used by Not tainted ac97 2832 0 (unused) soundcore 3204 0 (autoclean) nls_cp437 4384 3 (autoclean) ntfs 48288 1 (autoclean) 8139too 16512 1 keybdev 1664 0 (unused) usbkbd 2848 0 (unused) input 3072 0 [keybdev usbkbd] usb-storage 48128 0 (unused) usb-uhci 20996 0 (unused) usbcore 54368 1 [usbkbd usb-storage usb-uhci] output of lspci | grep -i audio 0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8 237 AC97 Audio Controller (rev 40) Alsaconf seems to be looking for soundcards so it doesn't work. i have added myself to the audio group
  10. kobedf

    sound

    ok.......i have sid and the 2.4 kernel ( ac'97 on board chip) las time i asked how to make the sound work you told me to add myself to the audio group .....how do i do that? the problem is i do not have a soundcard installed alsamixer: function snd_ctl_open failed for default: No such device and when i start linux i get a similar message saying that there are no cards and that it will direct output to dev/null i have installed alsa-modules-2.4.27-i-386 libasound2 alsa-base what sould i install next....or where did i go wrong?
  11. kobedf

    boot debian

    if i don't use the FDD my system boots into Windows because that's the way i want it to behave . i have not installed a boot-loader yet.that's why i want to put lilo on a floppy and with it to choose from windows or linux . Without the floppy i want my sistem to boot into Win.
  12. kobedf

    packages

    how can i find a list of installed packages and their SIZE on my HDD ? i'm using sid and the 2.4 kernel
  13. kobedf

    boot debian

    well i have the 2.4 kernel and on the floppy i have : linux.bin 1.1MB ldlinux.sys 6.8k and a readme that says "Linux will be started automatically using the kernel on this floppy disk. The root filesystem will be mounted from /dev/hdc5 . " it also says "if you wish to use a kernel on the hard disk, remove the floppy and press RESET " but i cannot seem to get this right I know new kernels are bigger that's why i want only lilo on the FDD and make lilo boot using the kernel on my hard drive how do i do that?
  14. kobedf

    ac'97

    at the moment i have the 2.4 kernel ... i use kde ....but i login from gnome and choose kde beacuse this seems to be the only way to do that...the onnly way i can start kde ( don't know why) there is no sound in root nor anywhere else.
  15. kobedf

    ac'97

    please tell me what are the steps i need to take in order to have sound on debian(sid). i have an ac'97 on board chip. i tried to install alsa with apt-get but there are more than 1 things named alsa...and i don't know what each of them does...thank you
×