key-combination signals

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

  1. maryyam

    maryyam New Member

    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    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 Super Moderator Staff Member Staff Writer

    Messages:
    951
    Likes Received:
    848
    Trophy Points:
    93
    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

    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    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 Super Moderator Staff Member Staff Writer

    Messages:
    951
    Likes Received:
    848
    Trophy Points:
    93
    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

    Messages:
    889
    Likes Received:
    288
    Trophy Points:
    63
    /usr/include/signal.h

Share This Page