table.c File Reference

#include "kernel.h"
#include "proc.h"
#include "ipc.h"
#include <minix/com.h>
#include <ibm/int86.h>

Include dependency graph for table.c:

Go to the source code of this file.

Defines

#define _TABLE
#define NO_STACK   0
#define SMALL_STACK   (128 * sizeof(char *))
#define IDL_S   SMALL_STACK
#define HRD_S   NO_STACK
#define TSK_S   SMALL_STACK
#define TOT_STACK_SPACE   (IDL_S + HRD_S + (2 * TSK_S))
#define IDL_F   (SYS_PROC | PREEMPTIBLE | BILLABLE)
#define TSK_F   (SYS_PROC)
#define SRV_F   (SYS_PROC | PREEMPTIBLE)
#define USR_F   (BILLABLE | PREEMPTIBLE)
#define TSK_T   (1 << RECEIVE)
#define SRV_T   (~0)
#define USR_T   ((1 << SENDREC) | (1 << ECHO))
#define s(n)   (1 << s_nr_to_id(n))
#define SRV_M   (~0)
#define SYS_M   (~0)
#define USR_M   (s(PM_PROC_NR) | s(FS_PROC_NR) | s(RS_PROC_NR) | s(SYSTEM))
#define DRV_M   (USR_M | s(SYSTEM) | s(CLOCK) | s(DS_PROC_NR) | s(LOG_PROC_NR) | s(TTY_PROC_NR))
#define c(n)   (1 << ((n)-KERNEL_CALL))
#define RS_C   ~0
#define DS_C   ~0
#define PM_C   ~(c(SYS_DEVIO) | c(SYS_SDEVIO) | c(SYS_VDEVIO) | c(SYS_IRQCTL) | c(SYS_INT86))
#define FS_C   (c(SYS_KILL) | c(SYS_VIRCOPY) | c(SYS_VIRVCOPY) | c(SYS_UMAP) | c(SYS_GETINFO) | c(SYS_EXIT) | c(SYS_TIMES) | c(SYS_SETALARM))
#define DRV_C   (FS_C | c(SYS_SEGCTL) | c(SYS_IRQCTL) | c(SYS_INT86) | c(SYS_DEVIO) | c(SYS_SDEVIO) | c(SYS_VDEVIO))
#define TTY_C   (DRV_C | c(SYS_ABORT) | c(SYS_VM_MAP) | c(SYS_IOPENABLE))
#define MEM_C

Variables

PUBLIC char * t_stack [TOT_STACK_SPACE/sizeof(char *)]
PUBLIC struct boot_image image []
int dummy [(NR_BOOT_PROCS==sizeof(image)/sizeof(struct boot_image))?1:-1]


Define Documentation

#define _TABLE
 

Definition at line 29 of file table.c.

#define c n   )     (1 << ((n)-KERNEL_CALL))
 

Definition at line 79 of file table.c.

Referenced by _doprnt(), _doscan(), _i_compute(), _rdc(), _str_ext_cvt(), _wsl(), abs2dos(), ack_get_operand(), ack_put_string(), add_symbol(), addchar(), advance_to_start(), affirmative(), andor(), answer(), any(), apply_add(), argify(), argstr(), ascii2octet(), asciirecv(), asciisend(), ask(), asklin(), authenticate(), backslash(), band(), bas_get_operand(), blank(), bor(), c_list(), c_pwsp(), c_wsp(), calcHash(), cat(), categorize(), cclass(), check_existing(), check_header(), check_string(), ckglob(), cmd_read(), cmd_xct(), cmdputs(), command(), compile(), compress(), constant(), convert(), Convstr(), copy(), copy_action(), copy_ident(), copy_text(), copy_union(), copyexec(), copystr(), count(), countem(), cpio_options(), cputline(), crc(), crypt(), d_backup(), d_ncols(), dbg_diag(), declare_start(), declare_tokens(), declare_types(), decode(), decode64(), decurl(), defit(), delword(), diag(), dn_comp(), dn_expand(), do_diagnostics(), do_extract_currentfile(), do_file(), do_line(), do_memset(), do_opasc(), do_opcod(), do_video(), do_write(), doargs(), docmd(), doformat(), dogroup(), dollar(), doprnt(), Draw_Block(), Draw_Map(), e_bwsp(), e_fwsp(), e_gobpa(), e_gobwsp(), e_goepa(), e_gofwsp(), e_gowd(), e_lblankp(), e_search(), e_sputz(), ed_case(), ed_dorep(), ed_fill(), ed_sins(), editinput(), efun(), egets(), elsepart(), encode64(), eval(), evalvar(), ex_gobol(), ex_goeol(), ex_gonl(), ex_gopl(), exchange(), Expand(), expandmeta(), expr10(), f_delblines(), f_describe(), f_indrel(), f_retsup(), f_tchars(), f_uarg(), f_whatpage(), fast(), fatal(), fgets(), filbuf(), file(), file_changed(), fill(), Findchar(), Findmacro(), Findnum(), Findparms(), Findstr(), fn_match(), fnextch(), Fold(), follow(), follow2(), format(), fr(), fread(), gcd(), get1rec(), Get_Char(), Get_Line(), get_line(), get_literal(), get_name(), get_number(), get_string(), get_tag(), getc(), Getc(), getch(), GetChar(), getchar(), getcomm(), getdiv(), gethostent(), getinsync(), getlab(), getline(), getLong(), getn(), getnum(), getoct(), getoldopt(), getone(), getopt(), getoptscmd(), getstr(), getsym(), gettable(), gettoken(), getword(), gnu_get_operand(), gnu_put_string(), gnum(), goodchars(), gzgetc(), handle_req(), hash(), httpget(), i_search(), inet_aton(), inet_network(), inspect(), integral(), is_C_identifier(), is_escape(), isKanji(), islword(), jStrchr(), key(), keybind(), keyboard(), keypress(), keyword(), km_getc(), km_inwait(), land(), last_fname(), lerr(), lex(), list_file(), load_crontabs(), look(), lookext(), lookup(), lookup_op(), lor(), lrch(), lread(), lrstr(), m_write(), Macro(), main(), make_printable_name(), makerewindable(), maketarget(), makscr(), mark(), mark_symbol(), match(), matchcmp(), matchs(), mattrib(), mcopy(), mdel(), mdir(), mdoctorfat(), mdu(), meta(), mformat(), minfo(), mkCell(), mlabel(), mmd(), mmove(), move_to_char(), mpartition(), mshowfat(), myfeof(), netfinger(), nextblock(), nextc(), nextch(), nextopt(), ngetc(), noexpand(), noxrd7(), Nreq(), nstrcmp(), num(), numcvt(), offset(), ok(), okname(), open_ct_ok(), options(), order(), outkbind(), output_defines(), output_semantic_actions(), output_stored_text(), output_trailing_text(), p_b_cclass(), p_b_coll_elem(), p_b_eclass(), p_b_term(), p_bracket(), p_ere(), p_ere_exp(), p_simp_re(), parse(), parse_err(), parse_line(), parse_vses(), Pass2(), pattern(), pax_options(), pfgets(), pipeline(), pmatch(), pr_comm(), pr_rr(), pretty_image(), primary(), print(), print_name(), printlet(), printname(), process_command_line(), prolog(), putstr(), q3exchange(), qexchange(), qstr(), queryparam(), quote(), range_match(), rcmd(), rd_arhdr(), rd_name(), rd_num(), rd_ohead(), rd_relo(), rd_sect(), rdskip(), rdupto(), re_compile(), read1line(), read_declarations(), read_file(), read_grammar(), read_line(), read_word(), readblock(), readc(), readcmd(), readline(), readtoken1(), recomp(), recvfile(), regatom(), regsub(), rep_name(), repchar(), respond(), respond_really(), response(), resub(), resume_curses(), ret_to_continue(), rijndael_makekey(), rl_check_ints(), rzfile(), rzfiles(), scannum(), scanreg(), scanstr(), ScreenPut(), sctr(), searchwhatis(), searchwindex(), sendcodes(), sendfile(), sendzsinit(), servxcheck(), setdash(), setDFmacro(), setflags(), setoption(), shift(), showpage(), skip_page(), skipline(), skipwhite(), skipws(), slow(), spool(), string2long(), strings(), strstore(), strtok_r(), subgetc(), substrcmp(), synerr(), synio(), tail(), tar_options(), tel_in(), term(), test16a(), test8b(), tgetc(), thenpart(), Timed_Get_Char(), timing_dmp(), tmpsave(), token(), touch(), tputn(), tputz(), transpose(), trputc(), trstring(), tryz(), tstfillp(), TTYget(), u_prnt(), unary(), unesc(), Unexpand(), Ungetc(), unix_exec(), unzlocal_getByte(), upcase(), upd_line(), updatebox(), user_interface(), ustrcmp(), vfy_exer(), warn(), wcreceive(), wcrxpn(), wcs(), wordlist(), work(), wr_arhdr(), wr_ranlib(), write_section(), write_vfat(), writedata(), writer(), wspfls(), xxreadtoken(), yes(), yylex(), zdlread(), zgeth1(), zgethdr(), zgethex(), ziplocal_getByte(), zmputs(), zrbhdr(), zrbhdr32(), zrdat32(), zrdata(), zrhhdr(), zsda32(), zsendcmd(), zsendfdata(), and zsendfile().

#define DRV_C   (FS_C | c(SYS_SEGCTL) | c(SYS_IRQCTL) | c(SYS_INT86) | c(SYS_DEVIO) | c(SYS_SDEVIO) | c(SYS_VDEVIO))
 

Definition at line 84 of file table.c.

#define DRV_M   (USR_M | s(SYSTEM) | s(CLOCK) | s(DS_PROC_NR) | s(LOG_PROC_NR) | s(TTY_PROC_NR))
 

Definition at line 72 of file table.c.

#define DS_C   ~0
 

Definition at line 81 of file table.c.

#define FS_C   (c(SYS_KILL) | c(SYS_VIRCOPY) | c(SYS_VIRVCOPY) | c(SYS_UMAP) | c(SYS_GETINFO) | c(SYS_EXIT) | c(SYS_TIMES) | c(SYS_SETALARM))
 

Definition at line 83 of file table.c.

#define HRD_S   NO_STACK
 

Definition at line 41 of file table.c.

#define IDL_F   (SYS_PROC | PREEMPTIBLE | BILLABLE)
 

Definition at line 49 of file table.c.

#define IDL_S   SMALL_STACK
 

Definition at line 40 of file table.c.

#define MEM_C
 

Value:

Definition at line 86 of file table.c.

#define NO_STACK   0
 

Definition at line 38 of file table.c.

#define PM_C   ~(c(SYS_DEVIO) | c(SYS_SDEVIO) | c(SYS_VDEVIO) | c(SYS_IRQCTL) | c(SYS_INT86))
 

Definition at line 82 of file table.c.

#define RS_C   ~0
 

Definition at line 80 of file table.c.

#define s n   )     (1 << s_nr_to_id(n))
 

Definition at line 68 of file table.c.

Referenced by _catch(), _doprnt(), _wrf(), _wsr(), abs2dos(), add_pair_to_block(), another_hunk(), asciirecv(), asciisend(), asciisetsize(), ask(), ask_kbuf(), authorize(), backref(), beep(), beep_x(), binaryrecv(), binarysend(), bits(), blast(), bsFinishWrite(), bsPutUChar(), bsPutUInt32(), bsW(), BZ2_blockSort(), BZ2_bsInitWrite(), BZ2_compressBlock(), BZ2_decompress(), c_complete(), calendar(), Cat(), catch(), cdiff(), checkdir(), CleanUpPasv(), clear_scan(), cmd_substitute(), codes(), collect(), Cond(), connect(), copy_input_until_stop(), copy_output_until_stop(), crypt(), d_line(), DataConnect(), db_prwind(), decode(), decomp(), Defdev(), deflate(), deflateBound(), deflateInit2_(), deflateParams(), deflateReset(), deflateSetDictionary(), deflateTune(), display(), dma_setup(), do_diocntl(), do_fkey_pressed(), do_flush(), do_fork(), do_getprocnr(), do_getsysinfo(), do_getty(), do_hard_int(), do_piix(), do_select(), do_stime(), do_time(), do_times(), do_up(), do_vcopy(), DOappe(), DOascii(), DObinary(), DOcd(), doconfig(), docrc(), DOdata(), dodir(), dofor(), DOgetreply(), doinsert(), DOlcd(), DOlist(), dollar(), DOlmkdir(), DOlrmdir(), DOmkdir(), DOMretr(), DOMstor(), DOnlst(), DOopen(), DOpass(), doPASV(), doprnt(), DOpwd(), DOquit(), DOretr(), DOrmdir(), DOrretr(), DOrstor(), doSTAT(), DOstor(), DOstou(), DoTalk(), dottoa(), DOuser(), dsp_init(), dsp_write(), dual(), dump_core(), dump_line(), dup_line(), dynamic(), emacs(), endfdxcmd(), env_get_param(), env_panic(), env_parse(), env_prefix(), execute(), exit_server(), expire_timers(), explode(), f_expire_tmrs(), f_reset(), f_set_timer(), f_transfer(), fdc_out(), fdc_results(), fdc_transfer(), fetchname(), Field(), findmust(), findsname(), fix_line(), fix_mcwd(), fix_wind(), fixed(), fkey_ctl(), floppy_stop(), flush_RL(), fmtdate(), format(), fprintf(), fread(), fs_init(), ftpget(), ftpreply(), func_key(), fwrite(), fxp_readv(), fxp_writev(), generateMTFValues(), get1rec(), get_env_conf(), get_literal(), get_mem_chunks(), get_mem_map(), get_some_switches(), get_stack_ptr(), get_string(), get_time(), get_times(), get_work(), getargs(), Getc(), getcap(), getcommand(), getline(), Getline(), getn(), GetNetInfo(), getoptscmd(), getreply(), getrequest(), getsval(), gettime(), getuptime(), gnu_emit_instruction(), gnu_listsym(), gnu_sname(), gnu_sym(), gnu_symprefix(), guess_geometry(), gz_open(), gzclearerr(), gzclose(), gzdirect(), gzeof(), gzerror(), gzflush(), gzread(), gzrewind(), gzseek(), gzsetparams(), gzungetc(), gzwrite(), handle_compress(), hash(), httpget(), If(), In(), in_byte(), in_word(), ini_terminal(), init(), init_params(), init_RL(), init_root(), init_select(), init_server(), Init_Termcap(), insert_bit(), insert_char(), intuit_diff_type(), inwinp(), is_C_identifier(), isempty_RL(), itoa(), iwritfile(), kb_ack(), kb_wait(), last_argument(), lex(), listsym(), m_init(), m_ioctl(), m_transfer(), macro(), main(), mainSort(), make_bootable(), makedirs(), makeMaps_d(), makeMaps_e(), makenames(), map_goto(), memccpy(), mkfld(), mkrec(), move_file(), my_getcwd(), my_inb(), my_inl(), my_inw(), my_outb(), my_outl(), my_outw(), mybcopy(), name2dev(), NetConnect(), NetInit(), NETinit(), NetListen(), new_mem(), nextc(), nr_ce(), number(), output_debug(), output_defines(), outputf(), outsym(), panic(), parse_line(), parsefont(), pch_swap(), pci_inb(), pci_inl(), pci_intel_init(), pci_inw(), pci_outb(), pci_outl(), pci_outw(), pcii_rreg16(), pcii_rreg32(), pcii_rreg8(), pcii_rsts(), pcii_wreg16(), pcii_wreg32(), pcii_wreg8(), pcii_wsts(), pgets(), plan_a(), pluscount(), pm_init(), prepare_new_block(), Print(), print_cycle(), print_pos(), probe_bus(), process(), Process(), proxy(), puff(), puti(), r_mkfld(), r_random(), rd_outsect(), read_and_set(), read_file(), readconfig(), readline(), recvfile(), regerror(), regexec(), reply(), Return(), rev_in_string(), rl_init_buf(), rl_init_hw(), rl_readv(), rl_writev(), sb16_inb(), sb16_outb(), scanreg(), scr_init(), scrollb(), scrollf(), search_str(), select_callback(), select_forget(), select_notified(), select_reevaluate(), select_return(), select_timeout_check(), select_unsuspend_by_endpt(), sendfile(), sendMTFValues(), sendreply(), sendrequest(), set_alarm(), set_leds(), setcompression(), setcompressionlevel(), setcompressionstrategy(), settimer(), sft_ext(), show_key_mappings(), showjobs(), sig_proc(), skip_comment(), split(), Split(), start_motor(), stat_all(), stat_inode(), step(), stop_motor(), stored(), Strfun(), strlen(), subr(), Subst(), symprefix(), sys_irqctl(), sys_segctl(), sys_task(), t_docleol(), TalkInit(), tcpget(), tell(), test16a(), test19e(), test2d(), test2e(), test37a(), test37b(), test39d(), test3a(), test6c(), test7c(), test7e(), test7f(), test7g(), test7h(), test7j(), tickdelay(), timegmt(), token_actions(), tty_init(), unRLE_obuf_to_output_FAST(), unRLE_obuf_to_output_SMALL(), unzClose(), unzCloseCurrentFile(), unzeof(), unzGetFilePos(), unzGetGlobalComment(), unzGetGlobalInfo(), unzGetLocalExtrafield(), unzGetOffset(), unzGoToFilePos(), unzGoToFirstFile(), unzGoToNextFile(), unzlocal_GetCurrentFileInfoInternal(), unzLocateFile(), unzOpen2(), unzOpenCurrentFile3(), unzReadCurrentFile(), unzSetOffset(), unztell(), upack16(), upd_curs(), upd_line(), upd_wind(), waitfor(), wildcard(), write_section(), yellat(), yelltoo(), and zcopy().

#define SMALL_STACK   (128 * sizeof(char *))
 

Definition at line 39 of file table.c.

#define SRV_F   (SYS_PROC | PREEMPTIBLE)
 

Definition at line 51 of file table.c.

#define SRV_M   (~0)
 

Definition at line 69 of file table.c.

#define SRV_T   (~0)
 

Definition at line 58 of file table.c.

#define SYS_M   (~0)
 

Definition at line 70 of file table.c.

#define TOT_STACK_SPACE   (IDL_S + HRD_S + (2 * TSK_S))
 

Definition at line 45 of file table.c.

#define TSK_F   (SYS_PROC)
 

Definition at line 50 of file table.c.

#define TSK_S   SMALL_STACK
 

Definition at line 42 of file table.c.

#define TSK_T   (1 << RECEIVE)
 

Definition at line 57 of file table.c.

#define TTY_C   (DRV_C | c(SYS_ABORT) | c(SYS_VM_MAP) | c(SYS_IOPENABLE))
 

Definition at line 85 of file table.c.

#define USR_F   (BILLABLE | PREEMPTIBLE)
 

Definition at line 52 of file table.c.

#define USR_M   (s(PM_PROC_NR) | s(FS_PROC_NR) | s(RS_PROC_NR) | s(SYSTEM))
 

Definition at line 71 of file table.c.

#define USR_T   ((1 << SENDREC) | (1 << ECHO))
 

Definition at line 59 of file table.c.


Variable Documentation

int dummy
 

Definition at line 124 of file table.c.

Referenced by copy_array(), do_dup(), do_fcntl(), do_reboot(), DOdata(), exec_bootstrap(), isatty(), lookup(), main(), make_bootable(), ns_recv(), pow(), sink(), and ttyread().

PUBLIC struct boot_image image[]
 

Initial value:

 {
 
 { IDLE,  idle_task, IDL_F,  8, IDLE_Q, IDL_S,     0,     0,     0, "idle"  },
 { CLOCK,clock_task, TSK_F,  8, TASK_Q, TSK_S, TSK_T,     0,     0, "clock" },
 { SYSTEM, sys_task, TSK_F,  8, TASK_Q, TSK_S, TSK_T,     0,     0, "system"},
 { HARDWARE,      0, TSK_F,  8, TASK_Q, HRD_S,     0,     0,     0, "kernel"},
 { PM_PROC_NR,    0, SRV_F, 32,      3, 0,     SRV_T, SRV_M,  PM_C, "pm"    },
 { FS_PROC_NR,    0, SRV_F, 32,      4, 0,     SRV_T, SRV_M,  FS_C, "fs"    },
 { RS_PROC_NR,    0, SRV_F,  4,      3, 0,     SRV_T, SYS_M,  RS_C, "rs"    },
 { DS_PROC_NR,    0, SRV_F,  4,      3, 0,     SRV_T, SYS_M,  DS_C, "ds"    },
 { TTY_PROC_NR,   0, SRV_F,  4,      1, 0,     SRV_T, SYS_M, TTY_C, "tty"   },
 { MEM_PROC_NR,   0, SRV_F,  4,      2, 0,     SRV_T, SYS_M, MEM_C, "mem"   },
 { LOG_PROC_NR,   0, SRV_F,  4,      2, 0,     SRV_T, SYS_M, DRV_C, "log"   },
 { INIT_PROC_NR,  0, USR_F,  8, USER_Q, 0,     USR_T, USR_M,     0, "init"  },
}

Definition at line 99 of file table.c.

PUBLIC char* t_stack[TOT_STACK_SPACE/sizeof(char *)]
 

Definition at line 46 of file table.c.


Generated on Fri Apr 14 23:14:38 2006 for minix by  doxygen 1.4.6