key-combination signals

Discussion in 'General Linux' started by maryyam, Aug 30, 2013.

  1. maryyam

    maryyam New Member

    Joined:
    Aug 30, 2013
    Messages:
    3
    Likes Received:
    1
    Hello,
    In linux kernel, how the kernel handle key combination ,entered from keyboard, signal? As for I know, keyboard handler generate SIGINT signal which is handled by kernel. Can anyone explain it for me?
    I want to see the files and functions where keyboard signals are being handled.
    Thanks for favour

     
    DevynCJohnson likes this.
  2. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Joined:
    May 21, 2013
    Messages:
    1,635
    Likes Received:
    1,276
    Do you mean something like these key-combinations? http://en.wikipedia.org/wiki/Magic_SysRq_key

    Welcome to Linux.org! This site is full of interesting articles and people that will help you. Remember to click "Like" for posts and articles that you found interesting or helpful. Enjoy Linux.org!
     
  3. maryyam

    maryyam New Member

    Joined:
    Aug 30, 2013
    Messages:
    3
    Likes Received:
    1
    I am looking for an explanation of what happens in Linux when ctrl+c is pressed to change the current terminal. Could you provide the location of the source file which handles this?
     
  4. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Joined:
    May 21, 2013
    Messages:
    1,635
    Likes Received:
    1,276
    ctrl-c sends a kill signal. This page discusses kill signals (http://en.wikipedia.org/wiki/Signal.h). The code is in the signal.h file (a part of the standard C library).
     
  5. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Joined:
    Aug 4, 2012
    Messages:
    1,858
    Likes Received:
    654

Share This Page