Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/cmd.c

    rcb3d641a r98000fb  
    409409};
    410410
    411 /* Data and methods for 'kill' command */
    412 static int cmd_kill(cmd_arg_t *argv);
    413 static cmd_arg_t kill_argv = {
    414         .type = ARG_TYPE_INT,
    415 };
    416 static cmd_info_t kill_info = {
    417         .name = "kill",
    418         .description = "kill <taskid> Kill a task.",
    419         .func = cmd_kill,
    420         .argc = 1,
    421         .argv = &kill_argv
    422 };
    423 
    424411/* Data and methods for 'zone' command */
    425412static int cmd_zone(cmd_arg_t *argv);
     
    472459        &help_info,
    473460        &ipc_info,
    474         &kill_info,
    475461        &set4_info,
    476462        &slabs_info,
     
    862848 * @return Always 1
    863849 */
    864 int cmd_slabs(cmd_arg_t * argv)
    865 {
     850int cmd_slabs(cmd_arg_t * argv) {
    866851        slab_print_list();
    867852        return 1;
     
    875860 * @return Always 1
    876861 */
    877 int cmd_threads(cmd_arg_t * argv)
    878 {
     862int cmd_threads(cmd_arg_t * argv) {
    879863        thread_print_list();
    880864        return 1;
     
    887871 * @return Always 1
    888872 */
    889 int cmd_tasks(cmd_arg_t * argv)
    890 {
     873int cmd_tasks(cmd_arg_t * argv) {
    891874        task_print_list();
    892875        return 1;
     
    899882 * @return Always 1
    900883 */
    901 int cmd_sched(cmd_arg_t * argv)
    902 {
     884int cmd_sched(cmd_arg_t * argv) {
    903885        sched_print_list();
    904886        return 1;
     
    911893 * return Always 1
    912894 */
    913 int cmd_zones(cmd_arg_t * argv)
    914 {
     895int cmd_zones(cmd_arg_t * argv) {
    915896        zone_print_list();
    916897        return 1;
     
    923904 * return Always 1
    924905 */
    925 int cmd_zone(cmd_arg_t * argv)
    926 {
     906int cmd_zone(cmd_arg_t * argv) {
    927907        zone_print_one(argv[0].intval);
    928908        return 1;
     
    935915 * return Always 1
    936916 */
    937 int cmd_ipc(cmd_arg_t * argv)
    938 {
     917int cmd_ipc(cmd_arg_t * argv) {
    939918        ipc_print_task(argv[0].intval);
    940919        return 1;
    941920}
    942921
    943 /** Command for killing a task
    944  *
    945  * @param argv Integer argument from cmdline expected
    946  *
    947  * return 0 on failure, 1 on success.
    948  */
    949 int cmd_kill(cmd_arg_t * argv)
    950 {
    951         if (task_kill(argv[0].intval) != EOK)
    952                 return 0;
    953 
    954         return 1;
    955 }
    956922
    957923/** Command for listing processors.
Note: See TracChangeset for help on using the changeset viewer.