I create a workqueue with create_workqueue, and then I want to print the name of the workqueue. The name should be the same name that I've used in create_workqueue as an argument. However, when I try to use my_workqueue->name it says that this is an invalid use of the struct. The item name exists in the structure.
static int __init my_init(void)
{
    struct workqueue_struct *my_workqueue = create_workqueue("myworkqueue");
    pr_info("%s\n", my_workqueue->name);
    return 0;
}
