Free Essay

Hellooo

In:

Submitted By rabiayns
Words 372
Pages 2
Extract the Linux-3.6.9 to location /usr/src/ or extract it on the Desktop and by typing the command on Terminal cd Desktop mv linux-3.6.9 /usr/src/

Create a NewFolder In /usr/src/Linux-3.6.9/

#include <linux/linkage.h> //for linking a system call
#include <linux/kernel.h> //for the printk asmlinkage long sys_myservice (int arg1) { printk(KERN_EMERG “My Service is Running”); return 1; }

Create a Makefile and add following code in it in Newfolder.
#####Makefile Start##### obj-y += myservice.o
#####Makefile End#######

In /usr/src/linux-3.6.9/include/asm-generic/unistd.h, define an index for system call.
#define __NR_myservice 273

Increment the system call count in same file of step 8.
#define NR_syscalls 274 as pointed by an arrow in the previous screenshot.

/usr/src/linux-3.6.9/arch/x86/syscalls/syscall_64.tbl, define a pointer to hold a reference to your system call routine.

In /usr/src/linux-3.6.9/include/linux/syscalls.h contain the declarations for system calls. Add the following line at the end of the file: asmlinkage long sys_myservice (int arg1);

Add directory path of the NewFolder to the Makefile (/usr/src/Linux-3.6.9/Makefile) core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ NewFolder/

Now on Terminal type these commands to be have root access to compile the privileged commands.

Compile Kernel cd usr/src/linux-3.6.9

* Enter (make oldconfig) * Start compiling to create a compressed kernel image (make) * Start compiling to kernel modules (make modules) * Install kernel modules (make modules_install) * Install kernel (make install) * Reboot System (reboot) Or Type make oldconfig make modules && make modules_install install reboot

15. Enter following code #include <stdio.h> #include <stdlib.h> #include <linux/unistd.h> /* for _syscall X macros/related stuff */ #include <linux/kernel.h> /* for struct sysinfo */ #define __NR_my_service 313 /* No of your system call in syscall_64.tbl list*/ int main() { int error; error=syscall( __NR_my_service); /* if return -1 syscall fails*/ printf("code error = %d\n ", error); return 0; } Place the testmyservice.c on Desktop and check it either it is working or not like this…

Similar Documents

Free Essay

Hellooo

...For Official use only STANDARD CLAIM FORM General Claim Form PLEASE TYPE OR PRINT IN INK Mail or deliver Office of Financial Management No. original claim Risk Management Division General Administration Building, Room ….. …………………………………………………. …………………………………………………. Post Office Box ……………………………… …………………………………….., Malaysia Business Hours: Mon. - Fri. 8:00 a.m. - 5:00 p.m. Closed on weekends and official state holidays. CLAIMANT INFORMATION 1. Claimant's name: ____________________________________________________________ ________________________________ 2. Date of birth (mm/dd/yyyy) [ _ _ - _ _ -_ _ _ _] 3. Current residential address: ____________________________________________________________ _______________________ ____________________________________________________________ _______________________ ____________________________________________________________ _______________________ ____________________________________________________________ _______________________ 4. Mailing address (if different): ____________________________________________________________ _______________________ ____________________________________________________________ _______________________ ____________________________________________________________ _______________________ ____________________________________________________________ _______________________ 5. Residential address at the time of the incident (if different from current address): ...

Words: 1104 - Pages: 5

Free Essay

Hellooo

...Nursing Process Focus: Patients Receiving Phenelzine (Nardil) |Assessment |Potential Nursing Diagnoses | |Prior to administration: |Sorrow, Chronic related to | |Obtain complete medical history including allergies, neurological , |depressive state. | |cardiac, renal, biliary, and mental disorders including blood |Thought Processes, Disturbed related to | |studies: CBC, platelets and liver enzymes,. |effects of drug therapy | |Obtain patient’s drug history to determine possible drug interactions|Adjustment, Impaired related to inadequate | |and allergies |drug effectiveness. | |Obtain 24 hour dietary history to identify |Knowledge, Deficient, related to drug | |tyramine containing foods ingested |action and side effects. | |recently |Suicide, Risk for related to inadequate drug ...

Words: 4527 - Pages: 19

Free Essay

Hello

...Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join this Hellooo all I want to join...

Words: 266 - Pages: 2

Premium Essay

Dsasd

...can expect to find more open roles. Money sitting on the sidelines will come back into the economy as investment in people, training, technology and…..the real innovation starts to move forward. Or will it? I feel as though we’ve had a Goodbye, uncertainty and Hellooo, uncertainty, moment. We’re still perched on the edge of the so-called fiscal cliff, waiting for leadership to show up. 2013 promises to be one of the most challenging years yet for Leaders and HR pros as they are forced to pick a path around healthcare regulations that haven’t been written, some level of tax reform that hasn’t been defined (er, Simpson-Bowles anyone?) and employee frustration with lack of growth, potential loss of benefits, and dimming hopes of retirement. Whatever your politics, we’re all in the same boat, and it’s listing badly. The leader’s seat is still vacant. Can you believe it? rs’ takes the number two spot of concerns HR must address as identified by 52 percent of respondents. This is a big jump from the 2010 survey, in which a mere 29 percent of respondents named leadership development a pressing HR challenge. In business, as in the rest of life, leadership skills are critical now more than ever. Taking the number one spot in the SHRM survey with 60 percent of respondents is ‘retaining and rewarding the best employees’. This makes sense as a lead-in, since I’d argue the best employees are leaders – people leaders, management leaders, creative leaders, technical leaders or sales...

Words: 344 - Pages: 2

Free Essay

Jurassic Park

...Jurassic Park Michael Crichton Copyright Michael Crichton (c) 1991 All Rights Reserved The right of Michael Crichton to be identified as the author of this work has been asserted by him in accordance with the Copyright, Designs and Patents Act 1988. First published in Great Britain in 1991 by the Random Century Group 20 Vauxhall Bridge Rd, London SWIV 2SA Century Hutchinson South Africa (Pty) Ltd PO Box 337, Bergvlei 2012 South Africa Random Century Australia Pty Ltd 20 Alfred St, Milsons Point, Sydney, NSW 2061 Australia Random Century New Zealand Ltd PO Box 40-086, Glenfield, Auckland 10 New Zealand A CIP Catalogue Record for this book is available from the British Library ISBN: 0 7126 4686 8 Printed in England by Clays Ltd, St Ives plc For A-M and T "Reptiles are abhorrent because of their cold body, pale color, cartilaginous skeleton, filthy skin, fierce aspect, calculating eye, offensive smell, harsh voice, squalid habitation, and terrible venom; wherefore their Creator has not exerted his powers to make many of them." LINNAEUS, 1797 "You cannot recall a new form of life." ERWIN CHARGAFF, 1972 Introduction "The InGen Incident" The late twentieth century has witnessed a scientific gold rush of astonishing proportions: the headlong and furious haste to commercialize genetic engineering. This enterprise has proceeded so rapidly-with so little outside commentary-that its dimensions and implications are hardly understood at all. Biotechnology promises the...

Words: 129902 - Pages: 520

Premium Essay

Quiet: Power of Introverts

...MORE ADVANCE NOISE FOR QUIET “An intriguing and potentially lifealtering examination of the human psyche that is sure to benefit both introverts and extroverts alike.” —Kirkus Reviews (starred review) “Gentle is powerful … Solitude is socially productive … These important counterintuitive ideas are among the many reasons to take Quiet to a quiet corner and absorb its brilliant, thought-provoking message.” —ROSABETH MOSS KANTER, professor at Harvard Business School, author of Confidence and SuperCorp “An informative, well-researched book on the power of quietness and the 3/929 virtues of having a rich inner life. It dispels the myth that you have to be extroverted to be happy and successful.” —JUDITH ORLOFF, M.D., author of Emotional Freedom “In this engaging and beautifully written book, Susan Cain makes a powerful case for the wisdom of introspection. She also warns us ably about the downside to our culture’s noisiness, including all that it risks drowning out. Above the din, Susan’s own voice remains a compelling presence—thoughtful, generous, calm, and eloquent. Quiet deserves a very large readership.” —CHRISTOPHER LANE, author of Shyness: How Normal Behavior Became a Sickness 4/929 “Susan Cain’s quest to understand introversion, a beautifully wrought journey from the lab bench to the motivational speaker’s hall, offers convincing evidence for valuing substance over style, steak over sizzle, and qualities that are, in America, often derided. This book is brilliant...

Words: 118436 - Pages: 474