I am writing my own shell as part of course assignment. So I need to support background jobs. I am maintaining data strutures for job id and background jobs. But I need to tell kernel also that this is background process so that there is only one terminal foreground process. Till now I am handling background jobs at my program level.
What is the function call to register a background process?